Add an OSX build that doesn't run tests.

This one is not allowed to fail and ensures that toxcore can at least be
built for OSX.
This commit is contained in:
iphydf 2017-01-05 21:23:06 +00:00
parent fdb46f6cf2
commit 08cd61387e
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
4 changed files with 17 additions and 12 deletions

View File

@ -2,6 +2,13 @@ language: c
matrix:
include:
# OSX build comes first because Travis queues builds in order. The OSX
# builds are often pushed on a very long (100-200 jobs) backlog, so they get
# highest priority in our build sequence.
- env: JOB=toxcore ENV=osx RUN_TESTS=false
os: osx
- env: JOB=toxcore ENV=osx RUN_TESTS=true
os: osx
- env: JOB=hstox ENV=linux
language: haskell
ghc: 7.8
@ -9,8 +16,6 @@ matrix:
compiler: gcc
- env: JOB=toxcore ENV=linux
compiler: clang
- env: JOB=toxcore ENV=osx
os: osx
- env: JOB=toxcore ENV=windows ARCH=i686
services:
- docker
@ -19,7 +24,7 @@ matrix:
- docker
fast_finish: true
allow_failures:
- os: osx
- env: JOB=toxcore ENV=osx RUN_TESTS=true
addons:
apt:

View File

@ -4,6 +4,7 @@ CMAKE=cmake
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
NPROC=`nproc`
CURDIR=$PWD
RUN_TESTS=true
RUN() {
"$@"

View File

@ -4,13 +4,12 @@ CMAKE=$ARCH-w64-mingw32.shared-cmake
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DCOMPILE_AS_CXX=ON"
NPROC=`nproc`
CURDIR=/work
RUN_TESTS=false
RUN() {
./dockcross "$@"
}
ENABLE_WINDOWS_TESTS=false
TESTS() {
# Download Microsoft DLLs.
curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll
@ -20,10 +19,8 @@ TESTS() {
./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
./dockcross "$@" || {
cat _build/Testing/Temporary/LastTest.log
false
}
}

View File

@ -37,4 +37,6 @@ RUN $CMAKE \
export CTEST_OUTPUT_ON_FAILURE=1
RUN make -C$BUILD_DIR -j$NPROC -k install
TESTS make -C$BUILD_DIR -j$NPROC test
if $RUN_TESTS; then
TESTS make -C$BUILD_DIR -j$NPROC test
fi