Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 1 | language: cpp |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 2 | dist: bionic |
Davide Pesavento | 0934888 | 2016-09-17 02:39:44 +0200 | [diff] [blame] | 3 | env: |
| 4 | global: |
| 5 | - JOB_NAME=limited-build |
Davide Pesavento | 3cf9078 | 2017-08-10 01:21:20 -0400 | [diff] [blame] | 6 | - WAF_JOBS=2 |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 7 | |
Alexander Afanasyev | ce306ca | 2015-12-09 12:59:05 -0800 | [diff] [blame] | 8 | matrix: |
| 9 | include: |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 10 | # Linux/gcc |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 11 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Alexander Afanasyev | ce306ca | 2015-12-09 12:59:05 -0800 | [diff] [blame] | 12 | - os: linux |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 13 | env: COMPILER=g++-5 |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 14 | - os: linux |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 15 | env: COMPILER=g++-6 |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 16 | - os: linux |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 17 | env: COMPILER=g++-7 |
Davide Pesavento | d89f002 | 2018-04-28 14:48:25 -0400 | [diff] [blame] | 18 | - os: linux |
| 19 | env: COMPILER=g++-8 |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 20 | # disable AddressSanitizer with gcc 9 due to |
| 21 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90570 |
Davide Pesavento | c816371 | 2019-06-23 16:35:47 -0400 | [diff] [blame] | 22 | - os: linux |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 23 | env: COMPILER=g++-9 DISABLE_ASAN=yes |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 24 | |
| 25 | # Linux/clang |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 26 | # https://apt.llvm.org/ |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 27 | - os: linux |
Davide Pesavento | 844b093 | 2018-05-07 01:00:16 -0400 | [diff] [blame] | 28 | env: COMPILER=clang++-3.9 |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 29 | - os: linux |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 30 | env: COMPILER=clang++-4.0 |
Davide Pesavento | bcf23a3 | 2017-09-12 16:45:59 -0400 | [diff] [blame] | 31 | - os: linux |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 32 | env: COMPILER=clang++-5.0 |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 33 | - os: linux |
| 34 | env: COMPILER=clang++-6.0 |
Davide Pesavento | fe407f2 | 2019-07-16 23:03:08 -0400 | [diff] [blame] | 35 | # disable AddressSanitizer with clang 7 and 8 |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 36 | # due to https://bugs.llvm.org/show_bug.cgi?id=40808 |
Davide Pesavento | 8a8c01b | 2018-03-11 00:07:52 -0500 | [diff] [blame] | 37 | - os: linux |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 38 | env: COMPILER=clang++-7 DISABLE_ASAN=yes |
Davide Pesavento | 52bc4e9 | 2018-08-23 19:08:19 -0400 | [diff] [blame] | 39 | - os: linux |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 40 | env: COMPILER=clang++-8 DISABLE_ASAN=yes |
| 41 | - os: linux |
Davide Pesavento | fe407f2 | 2019-07-16 23:03:08 -0400 | [diff] [blame] | 42 | env: COMPILER=clang++-9 |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 43 | - os: linux |
| 44 | env: COMPILER=clang++-10 |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 45 | |
| 46 | # macOS/clang |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 47 | # https://docs.travis-ci.com/user/reference/osx/#macos-version |
Davide Pesavento | ca660f1 | 2018-06-16 14:01:51 -0400 | [diff] [blame] | 48 | - os: osx |
Davide Pesavento | ca660f1 | 2018-06-16 14:01:51 -0400 | [diff] [blame] | 49 | osx_image: xcode9.2 |
| 50 | env: OSX_VERSION=10.12 |
| 51 | - os: osx |
| 52 | osx_image: xcode9.4 |
Davide Pesavento | 8a8c01b | 2018-03-11 00:07:52 -0500 | [diff] [blame] | 53 | env: OSX_VERSION=10.13 |
Davide Pesavento | d89f002 | 2018-04-28 14:48:25 -0400 | [diff] [blame] | 54 | - os: osx |
Davide Pesavento | 511712d | 2018-11-03 18:51:10 -0400 | [diff] [blame] | 55 | osx_image: xcode10.1 |
Davide Pesavento | 52bc4e9 | 2018-08-23 19:08:19 -0400 | [diff] [blame] | 56 | env: OSX_VERSION=10.13 |
Davide Pesavento | 13fffa3 | 2018-09-30 16:21:33 -0400 | [diff] [blame] | 57 | - os: osx |
Davide Pesavento | 511712d | 2018-11-03 18:51:10 -0400 | [diff] [blame] | 58 | osx_image: xcode10.1 |
Davide Pesavento | 13fffa3 | 2018-09-30 16:21:33 -0400 | [diff] [blame] | 59 | env: OSX_VERSION=10.13 USE_OPENSSL_1_1=yes |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 60 | - os: osx |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 61 | osx_image: xcode10.3 |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 62 | env: OSX_VERSION=10.14 |
| 63 | - os: osx |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 64 | osx_image: xcode10.3 |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 65 | env: OSX_VERSION=10.14 USE_OPENSSL_1_1=yes |
Davide Pesavento | fe407f2 | 2019-07-16 23:03:08 -0400 | [diff] [blame] | 66 | - os: osx |
| 67 | osx_image: xcode11 |
| 68 | env: OSX_VERSION=10.14 |
| 69 | - os: osx |
| 70 | osx_image: xcode11 |
| 71 | env: OSX_VERSION=10.14 USE_OPENSSL_1_1=yes |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 72 | |
| 73 | allow_failures: |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 74 | - env: COMPILER=clang++-10 |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 75 | |
| 76 | fast_finish: true |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 77 | |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 78 | before_install: | |
Davide Pesavento | 844b093 | 2018-05-07 01:00:16 -0400 | [diff] [blame] | 79 | case ${COMPILER} in |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 80 | g++-[567]|clang++-[3456].*) |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 81 | ;; |
| 82 | g++-*) |
Davide Pesavento | 844b093 | 2018-05-07 01:00:16 -0400 | [diff] [blame] | 83 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 84 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 844b093 | 2018-05-07 01:00:16 -0400 | [diff] [blame] | 85 | ;; |
| 86 | clang++-*) |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 87 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 88 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
| 89 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-10} main" |
Davide Pesavento | 844b093 | 2018-05-07 01:00:16 -0400 | [diff] [blame] | 90 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 844b093 | 2018-05-07 01:00:16 -0400 | [diff] [blame] | 91 | ;; |
| 92 | esac |
| 93 | |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 94 | install: |
| 95 | - if [[ -n ${COMPILER} ]]; then travis_retry sudo apt-get -qy install "${COMPILER/clang++/clang}"; fi |
| 96 | |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 97 | before_script: |
Davide Pesavento | cb67252 | 2019-09-23 17:40:14 -0400 | [diff] [blame] | 98 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-18.04"; fi |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 99 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi |
Davide Pesavento | 4fc9080 | 2019-02-21 15:20:44 -0500 | [diff] [blame] | 100 | - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi |
Davide Pesavento | f714d1b | 2018-10-13 21:38:22 -0400 | [diff] [blame] | 101 | # workaround for https://github.com/Homebrew/homebrew-core/issues/26358 |
| 102 | - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi |
| 103 | # workaround for https://github.com/travis-ci/travis-ci/issues/6688 |
| 104 | - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi |
Davide Pesavento | 9412d12 | 2018-01-02 21:52:09 -0500 | [diff] [blame] | 105 | - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 106 | - ${CXX:-c++} --version |
Davide Pesavento | 364eeee | 2017-08-10 00:46:08 -0400 | [diff] [blame] | 107 | - python --version |
Davide Pesavento | 7143048 | 2017-06-08 20:06:40 -0400 | [diff] [blame] | 108 | |
Alexander Afanasyev | b4500d9 | 2014-01-17 20:43:24 -0800 | [diff] [blame] | 109 | script: |
Alexander Afanasyev | a87e0a8 | 2014-10-21 14:09:19 -0400 | [diff] [blame] | 110 | - ./.jenkins |