toxcore/other/travis/env-windows.sh
iphydf e59fd26d49
Add OSX and Windows build to travis config.
Tests for Windows are disabled for now, until we figure out which tests
can successfully run on wine and select only those.
2016-09-20 13:52:33 +01:00

29 lines
563 B
Bash

#!/bin/sh
CMAKE=$ARCH-w64-mingw32.shared-cmake
NPROC=`nproc`
CURDIR=/work
RUN() {
./dockcross "$@"
}
ENABLE_WINDOWS_TESTS=false
TESTS() {
# Download Microsoft DLLs.
curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll
curl http://www.dlldump.com/dllfiles/W/ws2_32.dll -o _build/ws2_32.dll
# Copy our dependency DLLs.
./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build'
# Run tests in docker.
if $ENABLE_WINDOWS_TESTS; then
./dockcross "$@" || {
cat _build/Testing/Temporary/LastTest.log
false
}
fi
}