| 1 | language: c |
| 2 | os: |
| 3 | - linux |
| 4 | compiler: |
| 5 | - clang |
| 6 | - gcc |
| 7 | env: |
| 8 | global: |
| 9 | - MAKEFLAGS="-j 2" |
| 10 | matrix: |
| 11 | include: |
| 12 | - os: osx |
| 13 | compiler: clang # Workaround travis setting CC=["clang", "gcc"] |
| 14 | # Build using the 10.12 SDK but target and run on OSX 10.11 |
| 15 | # - os: osx |
| 16 | # compiler: clang |
| 17 | # osx_image: xcode8 |
| 18 | # env: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk MACOSX_DEPLOYMENT_TARGET=10.11 |
| 19 | # Build on the latest OSX version (will eventually become obsolete) |
| 20 | - os: osx |
| 21 | compiler: clang |
| 22 | osx_image: xcode8.2 |
| 23 | exclude: |
| 24 | - os: osx |
| 25 | compiler: gcc |
| 26 | before_install: |
| 27 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi |
| 28 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq -y libaio-dev libnuma-dev libz-dev; fi |