summaryrefslogtreecommitdiff
path: root/other/travis/env-windows.sh
diff options
context:
space:
mode:
Diffstat (limited to 'other/travis/env-windows.sh')
-rw-r--r--other/travis/env-windows.sh28
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
3CMAKE=$ARCH-w64-mingw32.shared-cmake
4NPROC=`nproc`
5CURDIR=/work
6
7RUN() {
8 ./dockcross "$@"
9}
10
11ENABLE_WINDOWS_TESTS=false
12
13TESTS() {
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}