Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 1 | language: cpp |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 2 | dist: bionic |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame] | 3 | env: |
| 4 | global: |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame] | 5 | - WAF_JOBS=2 |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 6 | |
Alexander Afanasyev | 5ec9ae4 | 2016-07-28 14:30:21 -0700 | [diff] [blame] | 7 | matrix: |
| 8 | include: |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 9 | # Linux/gcc |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 10 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Alexander Afanasyev | 5ec9ae4 | 2016-07-28 14:30:21 -0700 | [diff] [blame] | 11 | - os: linux |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 12 | env: COMPILER=g++-5 |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 13 | - os: linux |
| 14 | env: COMPILER=g++-6 |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 15 | - os: linux |
| 16 | env: COMPILER=g++-7 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 17 | - os: linux |
| 18 | env: COMPILER=g++-8 |
Davide Pesavento | cf22053 | 2019-06-25 13:43:17 -0400 | [diff] [blame] | 19 | - os: linux |
| 20 | env: COMPILER=g++-9 |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 21 | |
| 22 | # Linux/clang |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 23 | # https://apt.llvm.org/ |
Alexander Afanasyev | 5ec9ae4 | 2016-07-28 14:30:21 -0700 | [diff] [blame] | 24 | - os: linux |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 25 | env: COMPILER=clang++-3.9 |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 26 | - os: linux |
| 27 | env: COMPILER=clang++-4.0 |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 28 | - os: linux |
| 29 | env: COMPILER=clang++-5.0 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 30 | - os: linux |
| 31 | env: COMPILER=clang++-6.0 |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 32 | # disable AddressSanitizer with clang 7 and 8 |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 33 | # due to https://bugs.llvm.org/show_bug.cgi?id=40808 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 34 | - os: linux |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 35 | env: COMPILER=clang++-7 DISABLE_ASAN=yes |
| 36 | - os: linux |
| 37 | env: COMPILER=clang++-8 DISABLE_ASAN=yes |
| 38 | - os: linux |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 39 | env: COMPILER=clang++-9 |
| 40 | - os: linux |
| 41 | env: COMPILER=clang++-10 |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 42 | |
| 43 | # macOS/clang |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 44 | # https://docs.travis-ci.com/user/reference/osx/#macos-version |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 45 | - os: osx |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 46 | osx_image: xcode9.2 |
| 47 | env: OSX_VERSION=10.12 |
| 48 | - os: osx |
| 49 | osx_image: xcode9.4 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 50 | env: OSX_VERSION=10.13 |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 51 | - os: osx |
| 52 | osx_image: xcode10.1 |
| 53 | env: OSX_VERSION=10.13 |
| 54 | - os: osx |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 55 | osx_image: xcode10.3 |
| 56 | env: OSX_VERSION=10.14 |
| 57 | - os: osx |
| 58 | osx_image: xcode11 |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 59 | env: OSX_VERSION=10.14 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 60 | |
| 61 | allow_failures: |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 62 | - env: COMPILER=clang++-10 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 63 | |
| 64 | fast_finish: true |
| 65 | |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 66 | before_install: | |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 67 | case ${COMPILER} in |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 68 | g++-[567]|clang++-[3456].*) |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 69 | ;; |
| 70 | g++-*) |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 71 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 72 | travis_retry sudo apt-get -qq update |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 73 | ;; |
| 74 | clang++-*) |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 75 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 76 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
| 77 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-10} main" |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 78 | travis_retry sudo apt-get -qq update |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 79 | ;; |
| 80 | esac |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 81 | |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 82 | install: |
| 83 | - if [[ -n ${COMPILER} ]]; then travis_retry sudo apt-get -qy install "${COMPILER/clang++/clang}"; fi |
| 84 | |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 85 | before_script: |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame^] | 86 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-18.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 |