blob: ed53635af35f4c407279936e751113023f52fbc3 [file] [log] [blame]
Davide Pesaventoee18cce2018-01-11 01:58:02 -05001language: cpp
Davide Pesaventod2ef9a72019-09-26 00:43:14 -04002dist: bionic
Davide Pesavento2a7f32b2017-09-02 13:48:13 -04003env:
4 global:
5 - WAF_JOBS=2
6
7matrix:
8 include:
9 # Linux/gcc
Davide Pesaventoee18cce2018-01-11 01:58:02 -050010 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040011 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050012 env: COMPILER=g++-5
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040013 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050014 env: COMPILER=g++-6
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040015 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050016 env: COMPILER=g++-7
Davide Pesavento64cafaa2018-05-24 00:50:41 -040017 - os: linux
18 env: COMPILER=g++-8
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040019 - os: linux
20 env: COMPILER=g++-9
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040021
22 # Linux/clang
Davide Pesaventoee18cce2018-01-11 01:58:02 -050023 # https://apt.llvm.org/
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040024 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050025 env: COMPILER=clang++-3.9
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040026 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050027 env: COMPILER=clang++-4.0
Davide Pesavento74de1452017-10-19 01:43:02 -040028 - os: linux
Davide Pesaventoee18cce2018-01-11 01:58:02 -050029 env: COMPILER=clang++-5.0
Davide Pesavento64cafaa2018-05-24 00:50:41 -040030 - os: linux
31 env: COMPILER=clang++-6.0
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040032 # disable AddressSanitizer with clang 7 and 8
Davide Pesavento58c07d12019-03-20 00:58:50 -040033 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesavento64cafaa2018-05-24 00:50:41 -040034 - os: linux
Davide Pesavento58c07d12019-03-20 00:58:50 -040035 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento7eaed5c2019-01-09 20:03:43 -050036 - os: linux
Davide Pesavento58c07d12019-03-20 00:58:50 -040037 env: COMPILER=clang++-8 DISABLE_ASAN=yes
38 - os: linux
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040039 env: COMPILER=clang++-9
40 - os: linux
41 env: COMPILER=clang++-10
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040042
43 # macOS/clang
Davide Pesavento58c07d12019-03-20 00:58:50 -040044 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040045 - os: osx
Davide Pesavento7eaed5c2019-01-09 20:03:43 -050046 osx_image: xcode9.2
47 env: OSX_VERSION=10.12
48 - os: osx
49 osx_image: xcode9.4
50 env: OSX_VERSION=10.13
51 - os: osx
52 osx_image: xcode10.1
Davide Pesavento64cafaa2018-05-24 00:50:41 -040053 env: OSX_VERSION=10.13
Davide Pesavento58c07d12019-03-20 00:58:50 -040054 - os: osx
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040055 osx_image: xcode10.3
56 env: OSX_VERSION=10.14
57 - os: osx
58 osx_image: xcode11
Davide Pesavento58c07d12019-03-20 00:58:50 -040059 env: OSX_VERSION=10.14
Davide Pesavento64cafaa2018-05-24 00:50:41 -040060
61 allow_failures:
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040062 - env: COMPILER=clang++-10
Davide Pesavento64cafaa2018-05-24 00:50:41 -040063
64 fast_finish: true
65
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040066before_install: |
Davide Pesavento64cafaa2018-05-24 00:50:41 -040067 case ${COMPILER} in
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040068 g++-[567]|clang++-[3456].*)
Davide Pesavento58c07d12019-03-20 00:58:50 -040069 ;;
70 g++-*)
Davide Pesavento64cafaa2018-05-24 00:50:41 -040071 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
72 travis_retry sudo apt-get -qq update
Davide Pesavento64cafaa2018-05-24 00:50:41 -040073 ;;
74 clang++-*)
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040075 LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}}
76 travis_retry wget -nv -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/${TRAVIS_DIST}/ ${LLVM_REPO%-10} main"
Davide Pesavento64cafaa2018-05-24 00:50:41 -040078 travis_retry sudo apt-get -qq update
Davide Pesavento64cafaa2018-05-24 00:50:41 -040079 ;;
80 esac
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040081
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040082install:
83 - if [[ -n ${COMPILER} ]]; then travis_retry sudo apt-get -qy install "${COMPILER/clang++/clang}"; fi
84
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040085before_script:
Davide Pesaventod2ef9a72019-09-26 00:43:14 -040086 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-18.04"; fi
Davide Pesaventoee18cce2018-01-11 01:58:02 -050087 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento7eaed5c2019-01-09 20:03:43 -050088 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
89 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
90 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
91 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
92 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesaventoee18cce2018-01-11 01:58:02 -050093 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento2a7f32b2017-09-02 13:48:13 -040094 - ${CXX:-c++} --version
95 - python --version
96
97script:
98 - ./.jenkins