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