diff options
Diffstat (limited to 'other')
-rw-r--r-- | other/travis/env-linux.sh | 1 | ||||
-rw-r--r-- | other/travis/env-windows.sh | 13 | ||||
-rwxr-xr-x | other/travis/toxcore-script | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/other/travis/env-linux.sh b/other/travis/env-linux.sh index 10b4fe82..dd5a6f7f 100644 --- a/other/travis/env-linux.sh +++ b/other/travis/env-linux.sh | |||
@@ -4,6 +4,7 @@ CMAKE=cmake | |||
4 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON" | 4 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON" |
5 | NPROC=`nproc` | 5 | NPROC=`nproc` |
6 | CURDIR=$PWD | 6 | CURDIR=$PWD |
7 | RUN_TESTS=true | ||
7 | 8 | ||
8 | RUN() { | 9 | RUN() { |
9 | "$@" | 10 | "$@" |
diff --git a/other/travis/env-windows.sh b/other/travis/env-windows.sh index 0ea1f726..7ae6ea25 100644 --- a/other/travis/env-windows.sh +++ b/other/travis/env-windows.sh | |||
@@ -4,13 +4,12 @@ CMAKE=$ARCH-w64-mingw32.shared-cmake | |||
4 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DCOMPILE_AS_CXX=ON" | 4 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DCOMPILE_AS_CXX=ON" |
5 | NPROC=`nproc` | 5 | NPROC=`nproc` |
6 | CURDIR=/work | 6 | CURDIR=/work |
7 | RUN_TESTS=false | ||
7 | 8 | ||
8 | RUN() { | 9 | RUN() { |
9 | ./dockcross "$@" | 10 | ./dockcross "$@" |
10 | } | 11 | } |
11 | 12 | ||
12 | ENABLE_WINDOWS_TESTS=false | ||
13 | |||
14 | TESTS() { | 13 | TESTS() { |
15 | # Download Microsoft DLLs. | 14 | # Download Microsoft DLLs. |
16 | curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll | 15 | curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll |
@@ -20,10 +19,8 @@ TESTS() { | |||
20 | ./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build' | 19 | ./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build' |
21 | 20 | ||
22 | # Run tests in docker. | 21 | # Run tests in docker. |
23 | if $ENABLE_WINDOWS_TESTS; then | 22 | ./dockcross "$@" || { |
24 | ./dockcross "$@" || { | 23 | cat _build/Testing/Temporary/LastTest.log |
25 | cat _build/Testing/Temporary/LastTest.log | 24 | false |
26 | false | 25 | } |
27 | } | ||
28 | fi | ||
29 | } | 26 | } |
diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script index 9b81b863..c6c0dd41 100755 --- a/other/travis/toxcore-script +++ b/other/travis/toxcore-script | |||
@@ -37,4 +37,6 @@ RUN $CMAKE \ | |||
37 | export CTEST_OUTPUT_ON_FAILURE=1 | 37 | export CTEST_OUTPUT_ON_FAILURE=1 |
38 | 38 | ||
39 | RUN make -C$BUILD_DIR -j$NPROC -k install | 39 | RUN make -C$BUILD_DIR -j$NPROC -k install |
40 | TESTS make -C$BUILD_DIR -j$NPROC test | 40 | if $RUN_TESTS; then |
41 | TESTS make -C$BUILD_DIR -j$NPROC test | ||
42 | fi | ||