blob: 2b37b90d337a5a3eda7746af808ef1c2abc68709 [file] [log] [blame]
Davide Pesavento9412d122018-01-02 21:52:09 -05001language: cpp
2dist: trusty
Alexander Afanasyevce306ca2015-12-09 12:59:05 -08003sudo: required
Davide Pesavento09348882016-09-17 02:39:44 +02004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesavento3cf90782017-08-10 01:21:20 -04007 - WAF_JOBS=2
Davide Pesavento71430482017-06-08 20:06:40 -04008
Alexander Afanasyevce306ca2015-12-09 12:59:05 -08009matrix:
10 include:
Davide Pesavento71430482017-06-08 20:06:40 -040011 # Linux/gcc
Davide Pesavento9412d122018-01-02 21:52:09 -050012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080013 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050014 env: COMPILER=g++-4.8
Davide Pesavento71430482017-06-08 20:06:40 -040015 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050016 env: COMPILER=g++-4.9
Davide Pesavento71430482017-06-08 20:06:40 -040017 addons:
18 apt:
19 sources: ubuntu-toolchain-r-test
20 packages: g++-4.9
Davide Pesavento71430482017-06-08 20:06:40 -040021 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050022 env: COMPILER=g++-5
Davide Pesavento71430482017-06-08 20:06:40 -040023 addons:
24 apt:
25 sources: ubuntu-toolchain-r-test
26 packages: g++-5
Davide Pesavento71430482017-06-08 20:06:40 -040027 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050028 env: COMPILER=g++-6
Davide Pesavento71430482017-06-08 20:06:40 -040029 addons:
30 apt:
31 sources: ubuntu-toolchain-r-test
32 packages: g++-6
Davide Pesavento71430482017-06-08 20:06:40 -040033 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050034 env: COMPILER=g++-7
Davide Pesavento71430482017-06-08 20:06:40 -040035 addons:
36 apt:
37 sources: ubuntu-toolchain-r-test
38 packages: g++-7
Davide Pesavento71430482017-06-08 20:06:40 -040039
40 # Linux/clang
Davide Pesavento9412d122018-01-02 21:52:09 -050041 # https://apt.llvm.org/
Davide Pesavento71430482017-06-08 20:06:40 -040042 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050043 env: COMPILER=clang++-3.5
Davide Pesavento71430482017-06-08 20:06:40 -040044 addons:
45 apt:
46 packages: clang-3.5
Davide Pesavento71430482017-06-08 20:06:40 -040047 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050048 env: COMPILER=clang++-3.6
Davide Pesavento71430482017-06-08 20:06:40 -040049 addons:
50 apt:
51 packages: clang-3.6
Davide Pesavento71430482017-06-08 20:06:40 -040052 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050053 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento71430482017-06-08 20:06:40 -040054 addons:
55 apt:
Davide Pesavento9412d122018-01-02 21:52:09 -050056 sources: ["llvm-toolchain-precise-3.7", "ubuntu-toolchain-r-test"]
Davide Pesavento71430482017-06-08 20:06:40 -040057 packages: clang-3.7
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080058 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050059 env: COMPILER=clang++-3.8
Davide Pesavento71430482017-06-08 20:06:40 -040060 addons:
61 apt:
Davide Pesavento9412d122018-01-02 21:52:09 -050062 sources: ["llvm-toolchain-precise-3.8", "ubuntu-toolchain-r-test"]
Davide Pesavento71430482017-06-08 20:06:40 -040063 packages: clang-3.8
Davide Pesavento71430482017-06-08 20:06:40 -040064 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050065 env: COMPILER=clang++-3.9 DISABLE_ASAN=yes
Davide Pesavento71430482017-06-08 20:06:40 -040066 addons:
67 apt:
Davide Pesavento9412d122018-01-02 21:52:09 -050068 sources: ["llvm-toolchain-trusty-3.9", "ubuntu-toolchain-r-test"]
Davide Pesavento71430482017-06-08 20:06:40 -040069 packages: clang-3.9
Davide Pesavento71430482017-06-08 20:06:40 -040070 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050071 env: COMPILER=clang++-4.0
Davide Pesavento71430482017-06-08 20:06:40 -040072 addons:
73 apt:
Davide Pesavento9412d122018-01-02 21:52:09 -050074 sources: ["llvm-toolchain-trusty-4.0", "ubuntu-toolchain-r-test"]
Davide Pesavento71430482017-06-08 20:06:40 -040075 packages: clang-4.0
Davide Pesaventobcf23a32017-09-12 16:45:59 -040076 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050077 env: COMPILER=clang++-5.0
Davide Pesaventobcf23a32017-09-12 16:45:59 -040078 addons:
79 apt:
Davide Pesavento9412d122018-01-02 21:52:09 -050080 sources: ["llvm-toolchain-trusty-5.0", "ubuntu-toolchain-r-test"]
Davide Pesaventobcf23a32017-09-12 16:45:59 -040081 packages: clang-5.0
Davide Pesavento9412d122018-01-02 21:52:09 -050082 - os: linux
83 env: COMPILER=clang++-6.0
84 addons:
85 apt:
86 sources: ["llvm-toolchain-trusty", "ubuntu-toolchain-r-test"]
87 packages: clang-6.0
Davide Pesavento71430482017-06-08 20:06:40 -040088
89 # macOS/clang
90 # https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080091 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040092 osx_image: xcode7.3
Davide Pesavento9412d122018-01-02 21:52:09 -050093 env: OSX_VERSION=10.11
Davide Pesavento71430482017-06-08 20:06:40 -040094 - os: osx
95 osx_image: xcode8.3
Davide Pesavento9412d122018-01-02 21:52:09 -050096 env: OSX_VERSION=10.12
Davide Pesavento49650be2017-10-15 22:03:57 -040097 - os: osx
Davide Pesavento9412d122018-01-02 21:52:09 -050098 osx_image: xcode9.2
99 env: OSX_VERSION=10.12
100 - os: osx
101 osx_image: xcode9.2
102 env: OSX_VERSION=10.12 USE_OPENSSL_1_1=yes
103
104 allow_failures:
105 - env: COMPILER=clang++-6.0
106 - env: OSX_VERSION=10.12 USE_OPENSSL_1_1=yes
107
108 fast_finish: true
Davide Pesavento71430482017-06-08 20:06:40 -0400109
110before_script:
Davide Pesavento9412d122018-01-02 21:52:09 -0500111 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-14.04"; fi
112 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
113 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento71430482017-06-08 20:06:40 -0400114 - ${CXX:-c++} --version
Davide Pesavento364eeee2017-08-10 00:46:08 -0400115 - python --version
Davide Pesavento71430482017-06-08 20:06:40 -0400116
Alexander Afanasyevb4500d92014-01-17 20:43:24 -0800117script:
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -0400118 - ./.jenkins