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 |
Davide Pesavento | 4a1edc6 | 2016-05-03 18:03:19 +0200 | [diff] [blame] | 3 | sudo: required |
Eric Newberry | 9737aa8 | 2016-12-27 23:03:49 -0700 | [diff] [blame] | 4 | env: |
| 5 | global: |
| 6 | - JOB_NAME=limited-build |
Davide Pesavento | 44660cf | 2017-08-16 00:44:23 -0400 | [diff] [blame] | 7 | - WAF_JOBS=2 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 8 | |
Alexander Afanasyev | 8a3081f | 2015-08-31 13:27:15 -0700 | [diff] [blame] | 9 | matrix: |
Davide Pesavento | 4a1edc6 | 2016-05-03 18:03:19 +0200 | [diff] [blame] | 10 | include: |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 11 | # Linux/gcc |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 12 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Alexander Afanasyev | 8a3081f | 2015-08-31 13:27:15 -0700 | [diff] [blame] | 13 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 14 | env: COMPILER=g++-5 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 15 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 16 | env: COMPILER=g++-6 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 17 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 18 | env: COMPILER=g++-7 |
Davide Pesavento | 79d12c6 | 2018-04-30 19:28:46 -0400 | [diff] [blame] | 19 | - os: linux |
| 20 | env: COMPILER=g++-8 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 21 | |
| 22 | # Linux/clang |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 23 | # https://apt.llvm.org/ |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 24 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 25 | env: COMPILER=clang++-3.6 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 26 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 27 | env: COMPILER=clang++-3.7 DISABLE_ASAN=yes |
Davide Pesavento | 4a1edc6 | 2016-05-03 18:03:19 +0200 | [diff] [blame] | 28 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 29 | env: COMPILER=clang++-3.8 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 30 | - os: linux |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 31 | env: COMPILER=clang++-3.9 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 32 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 33 | env: COMPILER=clang++-4.0 |
Davide Pesavento | b5e06e6 | 2017-09-15 22:30:01 -0400 | [diff] [blame] | 34 | - os: linux |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 35 | env: COMPILER=clang++-5.0 |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 36 | - os: linux |
| 37 | env: COMPILER=clang++-6.0 |
Davide Pesavento | e7d95a7 | 2018-03-11 20:54:08 -0400 | [diff] [blame] | 38 | - os: linux |
| 39 | env: COMPILER=clang++-7 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 40 | |
| 41 | # macOS/clang |
Davide Pesavento | e7d95a7 | 2018-03-11 20:54:08 -0400 | [diff] [blame] | 42 | # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version |
Alexander Afanasyev | 8a3081f | 2015-08-31 13:27:15 -0700 | [diff] [blame] | 43 | - os: osx |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 44 | osx_image: xcode7.3 |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 45 | env: OSX_VERSION=10.11 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 46 | - os: osx |
Davide Pesavento | 302941e | 2018-07-21 18:55:56 -0400 | [diff] [blame] | 47 | osx_image: xcode8 |
| 48 | env: OSX_VERSION=10.11 |
| 49 | - os: osx |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 50 | osx_image: xcode8.3 |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 51 | env: OSX_VERSION=10.12 |
Davide Pesavento | 1928024 | 2017-10-19 01:30:33 -0400 | [diff] [blame] | 52 | - os: osx |
Davide Pesavento | 302941e | 2018-07-21 18:55:56 -0400 | [diff] [blame] | 53 | osx_image: xcode9.2 |
| 54 | env: OSX_VERSION=10.12 |
| 55 | - os: osx |
| 56 | osx_image: xcode9.4 |
Davide Pesavento | e7d95a7 | 2018-03-11 20:54:08 -0400 | [diff] [blame] | 57 | env: OSX_VERSION=10.13 |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 58 | |
| 59 | allow_failures: |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 60 | - env: COMPILER=clang++-3.6 |
| 61 | - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 62 | |
| 63 | fast_finish: true |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 64 | |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 65 | install: | |
| 66 | case ${COMPILER} in |
| 67 | g++-[6789]) |
| 68 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 69 | travis_retry sudo apt-get -qq update |
| 70 | travis_retry sudo apt-get -qy install "${COMPILER}" |
| 71 | ;; |
| 72 | clang++-*) |
| 73 | CLANG_VERSION=${COMPILER/clang++} |
| 74 | if [[ ${CLANG_VERSION} != "-3."* ]]; then |
| 75 | wget -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
| 76 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-7} main" |
| 77 | fi |
| 78 | travis_retry sudo apt-get -qq update |
| 79 | travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}" |
| 80 | ;; |
| 81 | esac |
| 82 | |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 83 | before_script: |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 84 | - 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] | 85 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi |
| 86 | - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 87 | - ${CXX:-c++} --version |
Davide Pesavento | 5485ca9 | 2017-08-10 21:47:42 -0400 | [diff] [blame] | 88 | - python --version |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 89 | |
Joao Pereira | ef326da | 2015-05-27 18:27:40 -0400 | [diff] [blame] | 90 | script: |
Joao Pereira | ef326da | 2015-05-27 18:27:40 -0400 | [diff] [blame] | 91 | - ./.jenkins |