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