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