diff options
Diffstat (limited to 'other/travis/env-windows.sh')
-rw-r--r-- | other/travis/env-windows.sh | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/other/travis/env-windows.sh b/other/travis/env-windows.sh index d5e485f1..525630ae 100644 --- a/other/travis/env-windows.sh +++ b/other/travis/env-windows.sh | |||
@@ -1,29 +1,36 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | CMAKE=$ARCH-w64-mingw32.shared-cmake | ||
4 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DERROR_ON_WARNING=OFF" | 3 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DERROR_ON_WARNING=OFF" |
5 | NPROC=`nproc` | ||
6 | CURDIR=/work | ||
7 | RUN_TESTS=true | ||
8 | 4 | ||
9 | RUN() { | 5 | if [ "$JOB" = "toxcore" ]; then |
10 | ./dockcross "$@" | 6 | CMAKE=$ARCH-w64-mingw32.shared-cmake |
11 | } | 7 | NPROC=`nproc` |
8 | CURDIR=/work | ||
9 | RUN_TESTS=true | ||
12 | 10 | ||
13 | TESTS() { | 11 | RUN() { |
14 | shift # Ignore test run count. | 12 | ./dockcross "$@" |
13 | } | ||
14 | |||
15 | TESTS() { | ||
16 | shift # Ignore test run count. | ||
15 | 17 | ||
16 | # Download Microsoft DLLs. | 18 | # Download Microsoft DLLs. |
17 | curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll | 19 | curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll |
18 | curl http://www.dlldump.com/dllfiles/W/ws2_32.dll -o _build/ws2_32.dll | 20 | curl http://www.dlldump.com/dllfiles/W/ws2_32.dll -o _build/ws2_32.dll |
19 | 21 | ||
20 | # Copy our dependency DLLs. | 22 | # Copy our dependency DLLs. |
21 | ./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build' | 23 | ./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build' |
22 | 24 | ||
23 | # Run tests in docker. | 25 | # Run tests in docker. |
24 | ./dockcross "$@" || { | 26 | ./dockcross "$@" || { |
25 | cat _build/Testing/Temporary/LastTest.log | 27 | cat _build/Testing/Temporary/LastTest.log |
26 | # Ignore test failures on Windows builds for now. | 28 | # Ignore test failures on Windows builds for now. |
27 | #false | 29 | #false |
30 | } | ||
28 | } | 31 | } |
29 | } | 32 | elif [ "$JOB" = "installmd" ]; then |
33 | true | ||
34 | else | ||
35 | echo "Unsupported JOB=$JOB" | ||
36 | fi | ||