Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 1 | language: cpp |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 2 | dist: xenial |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 3 | sudo: required |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 4 | env: |
| 5 | global: |
| 6 | - JOB_NAME=limited-build |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 7 | - WAF_JOBS=2 |
| 8 | |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 9 | matrix: |
| 10 | include: |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 11 | # Linux/gcc |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 12 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 13 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 14 | env: COMPILER=g++-5 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 15 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 16 | env: COMPILER=g++-6 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 17 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 18 | env: COMPILER=g++-7 |
Davide Pesavento | 67f797f | 2018-04-28 14:51:27 -0400 | [diff] [blame] | 19 | - os: linux |
| 20 | env: COMPILER=g++-8 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 21 | |
| 22 | # Linux/clang |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 23 | # https://apt.llvm.org/ |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 24 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 25 | env: COMPILER=clang++-3.6 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 26 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 27 | env: COMPILER=clang++-3.7 DISABLE_ASAN=yes |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 28 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 29 | env: COMPILER=clang++-3.8 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 30 | - os: linux |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 31 | env: COMPILER=clang++-3.9 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 32 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 33 | env: COMPILER=clang++-4.0 |
Davide Pesavento | 085b9e3 | 2017-09-14 23:56:18 -0400 | [diff] [blame] | 34 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 35 | env: COMPILER=clang++-5.0 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 36 | - os: linux |
| 37 | env: COMPILER=clang++-6.0 |
Davide Pesavento | 068a71d | 2018-03-15 00:52:34 -0400 | [diff] [blame] | 38 | - os: linux |
| 39 | env: COMPILER=clang++-7 |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 40 | - os: linux |
| 41 | env: COMPILER=clang++-8 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 42 | |
| 43 | # macOS/clang |
Davide Pesavento | 068a71d | 2018-03-15 00:52:34 -0400 | [diff] [blame] | 44 | # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 45 | - os: osx |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 46 | osx_image: xcode7.3 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 47 | env: OSX_VERSION=10.11 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 48 | - os: osx |
Davide Pesavento | d657d53 | 2018-06-26 22:41:28 -0400 | [diff] [blame] | 49 | osx_image: xcode8 |
| 50 | env: OSX_VERSION=10.11 |
| 51 | - os: osx |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 52 | osx_image: xcode8.3 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 53 | env: OSX_VERSION=10.12 |
Davide Pesavento | 6daf2a3 | 2017-10-17 16:28:18 -0400 | [diff] [blame] | 54 | - os: osx |
Davide Pesavento | d657d53 | 2018-06-26 22:41:28 -0400 | [diff] [blame] | 55 | osx_image: xcode9.2 |
| 56 | env: OSX_VERSION=10.12 |
| 57 | - os: osx |
| 58 | osx_image: xcode9.4 |
Davide Pesavento | 068a71d | 2018-03-15 00:52:34 -0400 | [diff] [blame] | 59 | env: OSX_VERSION=10.13 |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 60 | - os: osx |
| 61 | osx_image: xcode10 |
| 62 | env: OSX_VERSION=10.13 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 63 | |
| 64 | allow_failures: |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 65 | - env: COMPILER=clang++-3.6 |
| 66 | - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 67 | - env: COMPILER=clang++-8 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 68 | |
| 69 | fast_finish: true |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 70 | |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 71 | install: | |
| 72 | case ${COMPILER} in |
| 73 | g++-[6789]) |
| 74 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 75 | travis_retry sudo apt-get -qq update |
| 76 | travis_retry sudo apt-get -qy install "${COMPILER}" |
| 77 | ;; |
| 78 | clang++-*) |
| 79 | CLANG_VERSION=${COMPILER/clang++} |
| 80 | if [[ ${CLANG_VERSION} != "-3."* ]]; then |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 81 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
| 82 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-8} main" |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 83 | fi |
| 84 | travis_retry sudo apt-get -qq update |
| 85 | travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}" |
| 86 | ;; |
| 87 | esac |
| 88 | |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 89 | before_script: |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 90 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 91 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi |
| 92 | - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 93 | - ${CXX:-c++} --version |
Davide Pesavento | 8ca138d | 2017-08-10 21:36:30 -0400 | [diff] [blame] | 94 | - python --version |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 95 | |
Yi Huang | 71929b3 | 2014-01-29 21:47:09 -0700 | [diff] [blame] | 96 | script: |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 97 | - ./.jenkins |