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