summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
Diffstat (limited to 'other')
-rw-r--r--other/travis/env-linux.sh1
-rw-r--r--other/travis/env-windows.sh13
-rwxr-xr-xother/travis/toxcore-script4
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
4CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON" 4CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
5NPROC=`nproc` 5NPROC=`nproc`
6CURDIR=$PWD 6CURDIR=$PWD
7RUN_TESTS=true
7 8
8RUN() { 9RUN() {
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
4CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DCOMPILE_AS_CXX=ON" 4CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DCOMPILE_AS_CXX=ON"
5NPROC=`nproc` 5NPROC=`nproc`
6CURDIR=/work 6CURDIR=/work
7RUN_TESTS=false
7 8
8RUN() { 9RUN() {
9 ./dockcross "$@" 10 ./dockcross "$@"
10} 11}
11 12
12ENABLE_WINDOWS_TESTS=false
13
14TESTS() { 13TESTS() {
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 \
37export CTEST_OUTPUT_ON_FAILURE=1 37export CTEST_OUTPUT_ON_FAILURE=1
38 38
39RUN make -C$BUILD_DIR -j$NPROC -k install 39RUN make -C$BUILD_DIR -j$NPROC -k install
40TESTS make -C$BUILD_DIR -j$NPROC test 40if $RUN_TESTS; then
41 TESTS make -C$BUILD_DIR -j$NPROC test
42fi