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