blob: 2dca949d760a797821316d60c51059349ae08e46 [file] [log] [blame]
Davide Pesaventoee18cce2018-01-11 01:58:02 -05001language: cpp
Davide Pesavento64cafaa2018-05-24 00:50:41 -04002dist: xenial
Davide Pesavento2a7f32b2017-09-02 13:48:13 -04003sudo: required
Davide Pesavento2a7f32b2017-09-02 13:48:13 -04004env:
5 global:
6 - WAF_JOBS=2
7
8matrix:
9 include:
10 # Linux/gcc
Davide Pesaventoee18cce2018-01-11 01:58:02 -050011 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040012 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050013 env: COMPILER=g++-5
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040014 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050015 env: COMPILER=g++-6
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040016 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050017 env: COMPILER=g++-7
Davide Pesavento64cafaa2018-05-24 00:50:41 -040018 - os: linux
19 env: COMPILER=g++-8
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040020
21 # Linux/clang
Davide Pesaventoee18cce2018-01-11 01:58:02 -050022 # https://apt.llvm.org/
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040023 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050024 env: COMPILER=clang++-3.5
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040025 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050026 env: COMPILER=clang++-3.6
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040027 - os: linux
Davide Pesavento64cafaa2018-05-24 00:50:41 -040028 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040029 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050030 env: COMPILER=clang++-3.8
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040031 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050032 env: COMPILER=clang++-3.9
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040033 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050034 env: COMPILER=clang++-4.0
Davide Pesavento74de1452017-10-19 01:43:02 -040035 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050036 env: COMPILER=clang++-5.0
Davide Pesavento64cafaa2018-05-24 00:50:41 -040037 - os: linux
38 env: COMPILER=clang++-6.0
39 - os: linux
40 env: COMPILER=clang++-7
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040041
42 # macOS/clang
Davide Pesavento64cafaa2018-05-24 00:50:41 -040043 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040044 - os: osx
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040045 osx_image: xcode7.3
Davide Pesaventoee18cce2018-01-11 01:58:02 -050046 env: OSX_VERSION=10.11
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040047 - os: osx
48 osx_image: xcode8.3
Davide Pesaventoee18cce2018-01-11 01:58:02 -050049 env: OSX_VERSION=10.12
Davide Pesavento74de1452017-10-19 01:43:02 -040050 - os: osx
Davide Pesavento64cafaa2018-05-24 00:50:41 -040051 osx_image: xcode9.3
52 env: OSX_VERSION=10.13
53
54 allow_failures:
55 - env: COMPILER=g++-6
56 - env: COMPILER=g++-7
57 - env: COMPILER=g++-8
58 - env: COMPILER=clang++-3.5
59 - env: COMPILER=clang++-3.6
60 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
61 - env: COMPILER=clang++-3.8
62 - env: COMPILER=clang++-3.9
63 - env: COMPILER=clang++-4.0
64 - env: COMPILER=clang++-5.0
65 - env: COMPILER=clang++-6.0
66 - env: COMPILER=clang++-7
67
68 fast_finish: true
69
70install: |
71 case ${COMPILER} in
72 g++-[6789])
73 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
74 travis_retry sudo apt-get -qq update
75 travis_retry sudo apt-get -qy install "${COMPILER}"
76 ;;
77 clang++-*)
78 CLANG_VERSION=${COMPILER/clang++}
79 if [[ ${CLANG_VERSION} != "-3."* ]]; then
80 wget -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
81 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-7} main"
82 fi
83 travis_retry sudo apt-get -qq update
84 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
85 ;;
86 esac
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040087
88before_script:
Davide Pesavento64cafaa2018-05-24 00:50:41 -040089 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesaventoee18cce2018-01-11 01:58:02 -050090 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
91 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040092 - ${CXX:-c++} --version
93 - python --version
94
95script:
96 - ./.jenkins