Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 1 | language: cpp |
| 2 | dist: trusty |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 3 | sudo: required |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 4 | env: |
| 5 | global: |
| 6 | - WAF_JOBS=2 |
| 7 | |
| 8 | matrix: |
| 9 | include: |
| 10 | # Linux/gcc |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 11 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 12 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 13 | env: COMPILER=g++-4.8 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 14 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 15 | env: COMPILER=g++-4.9 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 16 | addons: |
| 17 | apt: |
| 18 | sources: ubuntu-toolchain-r-test |
| 19 | packages: g++-4.9 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 20 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 21 | env: COMPILER=g++-5 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 22 | addons: |
| 23 | apt: |
| 24 | sources: ubuntu-toolchain-r-test |
| 25 | packages: g++-5 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 26 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 27 | env: COMPILER=g++-6 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 28 | addons: |
| 29 | apt: |
| 30 | sources: ubuntu-toolchain-r-test |
| 31 | packages: g++-6 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 32 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 33 | env: COMPILER=g++-7 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 34 | addons: |
| 35 | apt: |
| 36 | sources: ubuntu-toolchain-r-test |
| 37 | packages: g++-7 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 38 | |
| 39 | # Linux/clang |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 40 | # https://apt.llvm.org/ |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 41 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 42 | env: COMPILER=clang++-3.5 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 43 | addons: |
| 44 | apt: |
| 45 | packages: clang-3.5 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 46 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 47 | env: COMPILER=clang++-3.6 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 48 | addons: |
| 49 | apt: |
| 50 | packages: clang-3.6 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 51 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 52 | env: COMPILER=clang++-3.7 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 53 | addons: |
| 54 | apt: |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 55 | sources: ["llvm-toolchain-precise-3.7", "ubuntu-toolchain-r-test"] |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 56 | packages: clang-3.7 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 57 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 58 | env: COMPILER=clang++-3.8 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 59 | addons: |
| 60 | apt: |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 61 | sources: ["llvm-toolchain-precise-3.8", "ubuntu-toolchain-r-test"] |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 62 | packages: clang-3.8 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 63 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 64 | env: COMPILER=clang++-3.9 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 65 | addons: |
| 66 | apt: |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 67 | sources: ["llvm-toolchain-trusty-3.9", "ubuntu-toolchain-r-test"] |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 68 | packages: clang-3.9 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 69 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 70 | env: COMPILER=clang++-4.0 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 71 | addons: |
| 72 | apt: |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 73 | sources: ["llvm-toolchain-trusty-4.0", "ubuntu-toolchain-r-test"] |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 74 | packages: clang-4.0 |
Davide Pesavento | 74de145 | 2017-10-19 01:43:02 -0400 | [diff] [blame] | 75 | - os: linux |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 76 | env: COMPILER=clang++-5.0 |
Davide Pesavento | 74de145 | 2017-10-19 01:43:02 -0400 | [diff] [blame] | 77 | addons: |
| 78 | apt: |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 79 | sources: ["llvm-toolchain-trusty-5.0", "ubuntu-toolchain-r-test"] |
Davide Pesavento | 74de145 | 2017-10-19 01:43:02 -0400 | [diff] [blame] | 80 | packages: clang-5.0 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 81 | |
| 82 | # macOS/clang |
| 83 | # https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version |
| 84 | - os: osx |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 85 | osx_image: xcode7.3 |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 86 | env: OSX_VERSION=10.11 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 87 | - os: osx |
| 88 | osx_image: xcode8.3 |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 89 | env: OSX_VERSION=10.12 |
Davide Pesavento | 74de145 | 2017-10-19 01:43:02 -0400 | [diff] [blame] | 90 | - os: osx |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 91 | osx_image: xcode9.2 |
| 92 | env: OSX_VERSION=10.12 |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 93 | |
| 94 | before_script: |
Davide Pesavento | ee18cce | 2018-01-11 01:58:02 -0500 | [diff] [blame^] | 95 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-14.04"; fi |
| 96 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi |
| 97 | - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi |
Davide Pesavento | 2a7f32b | 2017-09-02 13:48:13 -0400 | [diff] [blame] | 98 | - ${CXX:-c++} --version |
| 99 | - python --version |
| 100 | |
| 101 | script: |
| 102 | - ./.jenkins |