Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 1 | language: cpp |
| 2 | dist: xenial |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 3 | env: |
| 4 | global: |
| 5 | - JOB_NAME=limited-build |
| 6 | - WAF_JOBS=2 |
| 7 | |
| 8 | matrix: |
| 9 | include: |
| 10 | # Linux/gcc |
| 11 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
| 12 | - os: linux |
| 13 | env: COMPILER=g++-5 |
| 14 | - os: linux |
| 15 | env: COMPILER=g++-6 |
| 16 | - os: linux |
| 17 | env: COMPILER=g++-7 |
| 18 | - os: linux |
| 19 | env: COMPILER=g++-8 |
| 20 | |
| 21 | # Linux/clang |
| 22 | # https://apt.llvm.org/ |
| 23 | - os: linux |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 24 | env: COMPILER=clang++-3.8 |
| 25 | - os: linux |
| 26 | env: COMPILER=clang++-3.9 |
| 27 | - os: linux |
| 28 | env: COMPILER=clang++-4.0 |
| 29 | - os: linux |
| 30 | env: COMPILER=clang++-5.0 |
| 31 | - os: linux |
| 32 | env: COMPILER=clang++-6.0 |
| 33 | - os: linux |
| 34 | env: COMPILER=clang++-7 |
Davide Pesavento | 8f9d062 | 2018-11-27 01:23:37 -0500 | [diff] [blame] | 35 | - os: linux |
| 36 | env: COMPILER=clang++-8 |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 37 | |
| 38 | # macOS/clang |
| 39 | # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version |
| 40 | - os: osx |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 41 | osx_image: xcode8.3 |
| 42 | env: OSX_VERSION=10.12 |
| 43 | - os: osx |
Davide Pesavento | 8f9d062 | 2018-11-27 01:23:37 -0500 | [diff] [blame] | 44 | osx_image: xcode9.2 |
| 45 | env: OSX_VERSION=10.12 |
| 46 | - os: osx |
| 47 | osx_image: xcode9.4 |
| 48 | env: OSX_VERSION=10.13 |
| 49 | - os: osx |
| 50 | osx_image: xcode10.1 |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 51 | env: OSX_VERSION=10.13 |
| 52 | |
| 53 | allow_failures: |
Davide Pesavento | 8f9d062 | 2018-11-27 01:23:37 -0500 | [diff] [blame] | 54 | - env: COMPILER=clang++-8 |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 55 | |
| 56 | fast_finish: true |
| 57 | |
| 58 | install: | |
| 59 | case ${COMPILER} in |
| 60 | g++-[6789]) |
| 61 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 62 | travis_retry sudo apt-get -qq update |
| 63 | travis_retry sudo apt-get -qy install "${COMPILER}" |
| 64 | ;; |
| 65 | clang++-*) |
| 66 | CLANG_VERSION=${COMPILER/clang++} |
| 67 | if [[ ${CLANG_VERSION} != "-3."* ]]; then |
Davide Pesavento | 8f9d062 | 2018-11-27 01:23:37 -0500 | [diff] [blame] | 68 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
| 69 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-8} main" |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 70 | fi |
| 71 | travis_retry sudo apt-get -qq update |
| 72 | travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}" |
| 73 | ;; |
| 74 | esac |
| 75 | |
| 76 | before_script: |
| 77 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi |
| 78 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi |
Davide Pesavento | 8f9d062 | 2018-11-27 01:23:37 -0500 | [diff] [blame] | 79 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew update; fi |
| 80 | # workaround for https://github.com/Homebrew/homebrew-core/issues/26358 |
| 81 | - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi |
| 82 | # workaround for https://github.com/travis-ci/travis-ci/issues/6688 |
| 83 | - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi |
Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 84 | - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi |
| 85 | - ${CXX:-c++} --version |
| 86 | - python --version |
| 87 | |
| 88 | script: |
| 89 | - ./.jenkins |