Skip to content

Commit

Permalink
Travis: enable OSX support for CI builds
Browse files Browse the repository at this point in the history
We currently build every BOINC component in one go on Mac. This is kind of intended as the build capacity for OSX on Travis CI is capped at 128 builds at the same time right now and extra builds will only add to the already full queue.
  • Loading branch information
ChristianBeer committed Mar 17, 2017
1 parent ab956d8 commit bc38c6f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: cpp
os:
- linux
- osx
compiler:
- gcc
# - clang
Expand All @@ -21,7 +24,7 @@ sudo: false
cache:
apt: true
directories:
- build/wxWidgets-3.0.2
- 3rdParty/buildCache

addons:
coverity_scan:
Expand Down Expand Up @@ -71,14 +74,27 @@ env:

matrix:
fast_finish: true
exclude:
# the osx build currently builds everything in one go
- os: osx
env: BOINC_TYPE=libs
- os: osx
env: BOINC_TYPE=server
- os: osx
env: BOINC_TYPE=client
- os: osx
env: BOINC_TYPE=apps
- os: osx
env: BOINC_TYPE=libs-mingw

before_script:
- ./_autosetup
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then ( ./_autosetup ) fi

script:
- if [[ "${BOINC_TYPE}" == "libs" ]]; then ( ./configure --disable-server --disable-client --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "server" ]]; then ( ./configure --disable-client --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "client" ]]; then ( ./configure --disable-server --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "apps" ]]; then ( ./configure --enable-apps --disable-server --disable-client --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" ]]; then ( ./build/getWxWidgets.sh && ./configure --disable-server --disable-client --with-wxdir=./build/wxWidgets-3.0.2/buildgtk && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "linux" ]]; then ( ./build/getWxWidgets.sh && ./configure --disable-server --disable-client --with-wxdir=./build/wxWidgets-3.0.2/buildgtk && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "osx" ]]; then ( ./3rdParty/buildMacDependencies.sh && ./mac_build/buildMacBOINC-CI.sh --no_shared_headers ) fi
- if [[ "${BOINC_TYPE}" == "libs-mingw" ]]; then ( cd lib && CC=/usr/bin/x86_64-w64-mingw32-gcc; CXX=/usr/bin/x86_64-w64-mingw32-g++; make -f Makefile.mingw ) fi

0 comments on commit bc38c6f

Please sign in to comment.