blob: cdbd696e5f9cd8757beec3490d3cb8aa38b67998 [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 Pesaventofe407f22019-07-16 23:03:08 -040035 # disable AddressSanitizer with clang 7 and 8
Davide Pesavento4fc90802019-02-21 15:20:44 -050036 # 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
Davide Pesaventofe407f22019-07-16 23:03:08 -040042 env: COMPILER=clang++-9
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 Pesaventofe407f22019-07-16 23:03:08 -040067 - os: osx
68 osx_image: xcode11
69 env: OSX_VERSION=10.14
70 - os: osx
71 osx_image: xcode11
72 env: OSX_VERSION=10.14 USE_OPENSSL_1_1=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050073
74 allow_failures:
Davide Pesaventofe407f22019-07-16 23:03:08 -040075 - env: COMPILER=clang++-9
Davide Pesavento9412d122018-01-02 21:52:09 -050076
77 fast_finish: true
Davide Pesavento71430482017-06-08 20:06:40 -040078
Davide Pesavento844b0932018-05-07 01:00:16 -040079install: |
80 case ${COMPILER} in
Davide Pesavento4fc90802019-02-21 15:20:44 -050081 g++-5)
82 ;;
83 g++-*)
Davide Pesavento844b0932018-05-07 01:00:16 -040084 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
85 travis_retry sudo apt-get -qq update
86 travis_retry sudo apt-get -qy install "${COMPILER}"
87 ;;
88 clang++-*)
89 CLANG_VERSION=${COMPILER/clang++}
90 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento52bc4e92018-08-23 19:08:19 -040091 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesavento4fc90802019-02-21 15:20:44 -050092 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 -040093 fi
94 travis_retry sudo apt-get -qq update
95 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
96 ;;
97 esac
98
Davide Pesavento71430482017-06-08 20:06:40 -040099before_script:
Davide Pesavento844b0932018-05-07 01:00:16 -0400100 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9412d122018-01-02 21:52:09 -0500101 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento4fc90802019-02-21 15:20:44 -0500102 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesaventof714d1b2018-10-13 21:38:22 -0400103 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
104 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
105 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
106 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesavento9412d122018-01-02 21:52:09 -0500107 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento71430482017-06-08 20:06:40 -0400108 - ${CXX:-c++} --version
Davide Pesavento364eeee2017-08-10 00:46:08 -0400109 - python --version
Davide Pesavento71430482017-06-08 20:06:40 -0400110
Alexander Afanasyevb4500d92014-01-17 20:43:24 -0800111script:
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -0400112 - ./.jenkins