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