Skip to content

Commit 73b85f1

Browse files
committed
Run tests from appveyor and travis builds (Linux only for now)
1 parent eb787f9 commit 73b85f1

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ branches:
55
- v0.x
66
- v1.x
77
# having another branch lets us force-push tests here without spamming master
8-
- travis-test
8+
- ci-test
99

1010
env:
1111
global:

scripts/appveyor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ branches:
44
only:
55
- v0.x
66
- v1.x
7+
- ci-test
78

89
image: Visual Studio 2015
910

@@ -73,3 +74,9 @@ build_script:
7374
sh -c ./scripts/hash_version.sh
7475
7576
msbuild renderdoc.sln /v:m "/p:Configuration=$env:CONFIGURATION" "/p:Platform=$env:PLATFORM" /p:PlatformToolset=v140
77+
78+
test_script:
79+
- ps: $env:testexe = "$env:PLATFORM\$env:CONFIGURATION\renderdoccmd.exe"
80+
- ps: if ( $env:PLATFORM -eq "x86" ) { $env:testexe = "Win32\$env:CONFIGURATION\renderdoccmd.exe" }
81+
- cmd: >-
82+
"%testexe%" test -t unit

scripts/travis/linux_compile.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ else
2121
cmake -DCMAKE_BUILD_TYPE=Debug ..
2222
fi
2323
make -j2
24+
25+
echo "--- Running unit tests ---"
26+
27+
./bin/renderdoccmd test -t unit

0 commit comments

Comments
 (0)