diff options
Diffstat (limited to 'other/travis/env-windows.sh')
-rw-r--r-- | other/travis/env-windows.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/other/travis/env-windows.sh b/other/travis/env-windows.sh new file mode 100644 index 00000000..d7eecada --- /dev/null +++ b/other/travis/env-windows.sh | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | CMAKE=$ARCH-w64-mingw32.shared-cmake | ||
4 | NPROC=`nproc` | ||
5 | CURDIR=/work | ||
6 | |||
7 | RUN() { | ||
8 | ./dockcross "$@" | ||
9 | } | ||
10 | |||
11 | ENABLE_WINDOWS_TESTS=false | ||
12 | |||
13 | TESTS() { | ||
14 | # Download Microsoft DLLs. | ||
15 | curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll | ||
16 | curl http://www.dlldump.com/dllfiles/W/ws2_32.dll -o _build/ws2_32.dll | ||
17 | |||
18 | # Copy our dependency DLLs. | ||
19 | ./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build' | ||
20 | |||
21 | # Run tests in docker. | ||
22 | if $ENABLE_WINDOWS_TESTS; then | ||
23 | ./dockcross "$@" || { | ||
24 | cat _build/Testing/Temporary/LastTest.log | ||
25 | false | ||
26 | } | ||
27 | fi | ||
28 | } | ||