blob: b67b4b077f4cc74e40e43ce4b063cb25ad7b116f [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 Pesavento71430482017-06-08 20:06:40 -040020
21 # Linux/clang
Davide Pesavento9412d122018-01-02 21:52:09 -050022 # https://apt.llvm.org/
Davide Pesavento71430482017-06-08 20:06:40 -040023 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050024 env: COMPILER=clang++-3.8
Davide Pesavento71430482017-06-08 20:06:40 -040025 - os: linux
Davide Pesavento844b0932018-05-07 01:00:16 -040026 env: COMPILER=clang++-3.9
Davide Pesavento71430482017-06-08 20:06:40 -040027 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050028 env: COMPILER=clang++-4.0
Davide Pesaventobcf23a32017-09-12 16:45:59 -040029 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050030 env: COMPILER=clang++-5.0
Davide Pesavento9412d122018-01-02 21:52:09 -050031 - os: linux
32 env: COMPILER=clang++-6.0
Davide Pesavento4fc90802019-02-21 15:20:44 -050033 # temporarily disable AddressSanitizer on clang-7 and later
34 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050035 - os: linux
Davide Pesavento4fc90802019-02-21 15:20:44 -050036 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento52bc4e92018-08-23 19:08:19 -040037 - os: linux
Davide Pesavento4fc90802019-02-21 15:20:44 -050038 env: COMPILER=clang++-8 DISABLE_ASAN=yes
39 - os: linux
40 env: COMPILER=clang++-9 DISABLE_ASAN=yes
Davide Pesavento71430482017-06-08 20:06:40 -040041
42 # macOS/clang
Davide Pesavento4fc90802019-02-21 15:20:44 -050043 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesaventoca660f12018-06-16 14:01:51 -040044 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040045 osx_image: xcode8.3
Davide Pesavento9412d122018-01-02 21:52:09 -050046 env: OSX_VERSION=10.12
Davide Pesavento49650be2017-10-15 22:03:57 -040047 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040048 osx_image: xcode9.2
49 env: OSX_VERSION=10.12
50 - os: osx
51 osx_image: xcode9.4
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050052 env: OSX_VERSION=10.13
Davide Pesaventod89f0022018-04-28 14:48:25 -040053 - os: osx
Davide Pesavento511712d2018-11-03 18:51:10 -040054 osx_image: xcode10.1
Davide Pesavento52bc4e92018-08-23 19:08:19 -040055 env: OSX_VERSION=10.13
Davide Pesavento13fffa32018-09-30 16:21:33 -040056 - os: osx
Davide Pesavento511712d2018-11-03 18:51:10 -040057 osx_image: xcode10.1
Davide Pesavento13fffa32018-09-30 16:21:33 -040058 env: OSX_VERSION=10.13 USE_OPENSSL_1_1=yes
Davide Pesavento4fc90802019-02-21 15:20:44 -050059 - os: osx
60 osx_image: xcode10.2
61 env: OSX_VERSION=10.14
62 - os: osx
63 osx_image: xcode10.2
64 env: OSX_VERSION=10.14 USE_OPENSSL_1_1=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050065
66 allow_failures:
Davide Pesavento4fc90802019-02-21 15:20:44 -050067 - env: COMPILER=clang++-9 DISABLE_ASAN=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050068
69 fast_finish: true
Davide Pesavento71430482017-06-08 20:06:40 -040070
Davide Pesavento844b0932018-05-07 01:00:16 -040071install: |
72 case ${COMPILER} in
Davide Pesavento4fc90802019-02-21 15:20:44 -050073 g++-5)
74 ;;
75 g++-*)
Davide Pesavento844b0932018-05-07 01:00:16 -040076 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
77 travis_retry sudo apt-get -qq update
78 travis_retry sudo apt-get -qy install "${COMPILER}"
79 ;;
80 clang++-*)
81 CLANG_VERSION=${COMPILER/clang++}
82 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento52bc4e92018-08-23 19:08:19 -040083 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesavento4fc90802019-02-21 15:20:44 -050084 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 -040085 fi
86 travis_retry sudo apt-get -qq update
87 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
88 ;;
89 esac
90
Davide Pesavento71430482017-06-08 20:06:40 -040091before_script:
Davide Pesavento844b0932018-05-07 01:00:16 -040092 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9412d122018-01-02 21:52:09 -050093 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento4fc90802019-02-21 15:20:44 -050094 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesaventof714d1b2018-10-13 21:38:22 -040095 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
96 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
97 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
98 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesavento9412d122018-01-02 21:52:09 -050099 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento71430482017-06-08 20:06:40 -0400100 - ${CXX:-c++} --version
Davide Pesavento364eeee2017-08-10 00:46:08 -0400101 - python --version
Davide Pesavento71430482017-06-08 20:06:40 -0400102
Alexander Afanasyevb4500d92014-01-17 20:43:24 -0800103script:
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -0400104 - ./.jenkins