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