blob: ed1741dfb04bb7f889534dc5dfde427c7ef0216e [file] [log] [blame]
Davide Pesavento9412d122018-01-02 21:52:09 -05001language: cpp
Davide Pesavento844b0932018-05-07 01:00:16 -04002dist: xenial
Davide Pesavento09348882016-09-17 02:39:44 +02003env:
4 global:
5 - JOB_NAME=limited-build
Davide Pesavento3cf90782017-08-10 01:21:20 -04006 - WAF_JOBS=2
Davide Pesavento71430482017-06-08 20:06:40 -04007
Alexander Afanasyevce306ca2015-12-09 12:59:05 -08008matrix:
9 include:
Davide Pesavento71430482017-06-08 20:06:40 -040010 # Linux/gcc
Davide Pesavento9412d122018-01-02 21:52:09 -050011 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080012 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050013 env: COMPILER=g++-5
Davide Pesavento71430482017-06-08 20:06:40 -040014 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050015 env: COMPILER=g++-6
Davide Pesavento71430482017-06-08 20:06:40 -040016 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050017 env: COMPILER=g++-7
Davide Pesaventod89f0022018-04-28 14:48:25 -040018 - os: linux
19 env: COMPILER=g++-8
Davide Pesaventoc8163712019-06-23 16:35:47 -040020 - os: linux
21 env: COMPILER=g++-9
Davide Pesavento71430482017-06-08 20:06:40 -040022
23 # Linux/clang
Davide Pesavento9412d122018-01-02 21:52:09 -050024 # https://apt.llvm.org/
Davide Pesavento71430482017-06-08 20:06:40 -040025 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050026 env: COMPILER=clang++-3.8
Davide Pesavento71430482017-06-08 20:06:40 -040027 - os: linux
Davide Pesavento844b0932018-05-07 01:00:16 -040028 env: COMPILER=clang++-3.9
Davide Pesavento71430482017-06-08 20:06:40 -040029 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050030 env: COMPILER=clang++-4.0
Davide Pesaventobcf23a32017-09-12 16:45:59 -040031 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050032 env: COMPILER=clang++-5.0
Davide Pesavento9412d122018-01-02 21:52:09 -050033 - os: linux
34 env: COMPILER=clang++-6.0
Davide Pesavento4fc90802019-02-21 15:20:44 -050035 # temporarily disable AddressSanitizer on clang-7 and later
36 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050037 - os: linux
Davide Pesavento4fc90802019-02-21 15:20:44 -050038 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento52bc4e92018-08-23 19:08:19 -040039 - os: linux
Davide Pesavento4fc90802019-02-21 15:20:44 -050040 env: COMPILER=clang++-8 DISABLE_ASAN=yes
41 - os: linux
42 env: COMPILER=clang++-9 DISABLE_ASAN=yes
Davide Pesavento71430482017-06-08 20:06:40 -040043
44 # macOS/clang
Davide Pesavento4fc90802019-02-21 15:20:44 -050045 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesaventoca660f12018-06-16 14:01:51 -040046 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040047 osx_image: xcode8.3
Davide Pesavento9412d122018-01-02 21:52:09 -050048 env: OSX_VERSION=10.12
Davide Pesavento49650be2017-10-15 22:03:57 -040049 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040050 osx_image: xcode9.2
51 env: OSX_VERSION=10.12
52 - os: osx
53 osx_image: xcode9.4
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050054 env: OSX_VERSION=10.13
Davide Pesaventod89f0022018-04-28 14:48:25 -040055 - os: osx
Davide Pesavento511712d2018-11-03 18:51:10 -040056 osx_image: xcode10.1
Davide Pesavento52bc4e92018-08-23 19:08:19 -040057 env: OSX_VERSION=10.13
Davide Pesavento13fffa32018-09-30 16:21:33 -040058 - os: osx
Davide Pesavento511712d2018-11-03 18:51:10 -040059 osx_image: xcode10.1
Davide Pesavento13fffa32018-09-30 16:21:33 -040060 env: OSX_VERSION=10.13 USE_OPENSSL_1_1=yes
Davide Pesavento4fc90802019-02-21 15:20:44 -050061 - os: osx
62 osx_image: xcode10.2
63 env: OSX_VERSION=10.14
64 - os: osx
65 osx_image: xcode10.2
66 env: OSX_VERSION=10.14 USE_OPENSSL_1_1=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050067
68 allow_failures:
Davide Pesavento4fc90802019-02-21 15:20:44 -050069 - env: COMPILER=clang++-9 DISABLE_ASAN=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050070
71 fast_finish: true
Davide Pesavento71430482017-06-08 20:06:40 -040072
Davide Pesavento844b0932018-05-07 01:00:16 -040073install: |
74 case ${COMPILER} in
Davide Pesavento4fc90802019-02-21 15:20:44 -050075 g++-5)
76 ;;
77 g++-*)
Davide Pesavento844b0932018-05-07 01:00:16 -040078 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
79 travis_retry sudo apt-get -qq update
80 travis_retry sudo apt-get -qy install "${COMPILER}"
81 ;;
82 clang++-*)
83 CLANG_VERSION=${COMPILER/clang++}
84 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento52bc4e92018-08-23 19:08:19 -040085 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesavento4fc90802019-02-21 15:20:44 -050086 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-9} main"
Davide Pesavento844b0932018-05-07 01:00:16 -040087 fi
88 travis_retry sudo apt-get -qq update
89 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
90 ;;
91 esac
92
Davide Pesavento71430482017-06-08 20:06:40 -040093before_script:
Davide Pesavento844b0932018-05-07 01:00:16 -040094 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9412d122018-01-02 21:52:09 -050095 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento4fc90802019-02-21 15:20:44 -050096 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesaventof714d1b2018-10-13 21:38:22 -040097 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
98 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
99 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
100 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesavento9412d122018-01-02 21:52:09 -0500101 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento71430482017-06-08 20:06:40 -0400102 - ${CXX:-c++} --version
Davide Pesavento364eeee2017-08-10 00:46:08 -0400103 - python --version
Davide Pesavento71430482017-06-08 20:06:40 -0400104
Alexander Afanasyevb4500d92014-01-17 20:43:24 -0800105script:
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -0400106 - ./.jenkins