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