toxcore/other/travis/env-windows.sh
iphydf 8f1bbcf83e
Use <stdlib.h> for alloca on FreeBSD.
https://www.freebsd.org/cgi/man.cgi?alloca

If stdlib.h does not define alloca, and we're using GCC (or Clang), we
define the macro ourselves in terms of a GCC builtin.
2018-01-22 21:05:30 +00:00

30 lines
678 B
Bash

#!/bin/sh
CMAKE=$ARCH-w64-mingw32.shared-cmake
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DERROR_ON_WARNING=OFF"
NPROC=`nproc`
CURDIR=/work
RUN_TESTS=true
RUN() {
./dockcross "$@"
}
TESTS() {
shift # Ignore test run count.
# 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.
./dockcross "$@" || {
cat _build/Testing/Temporary/LastTest.log
# Ignore test failures on Windows builds for now.
#false
}
}