blob: 22258a332a5219ab67032b725a6c69f3de8ec320 [file] [log] [blame]
Davide Pesavento9412d122018-01-02 21:52:09 -05001language: cpp
Davide Pesavento844b0932018-05-07 01:00:16 -04002dist: xenial
Alexander Afanasyevce306ca2015-12-09 12:59:05 -08003sudo: required
Davide Pesavento09348882016-09-17 02:39:44 +02004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesavento3cf90782017-08-10 01:21:20 -04007 - WAF_JOBS=2
Davide Pesavento71430482017-06-08 20:06:40 -04008
Alexander Afanasyevce306ca2015-12-09 12:59:05 -08009matrix:
10 include:
Davide Pesavento71430482017-06-08 20:06:40 -040011 # Linux/gcc
Davide Pesavento9412d122018-01-02 21:52:09 -050012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080013 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050014 env: COMPILER=g++-5
Davide Pesavento71430482017-06-08 20:06:40 -040015 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050016 env: COMPILER=g++-6
Davide Pesavento71430482017-06-08 20:06:40 -040017 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050018 env: COMPILER=g++-7
Davide Pesaventod89f0022018-04-28 14:48:25 -040019 - os: linux
20 env: COMPILER=g++-8
Davide Pesavento71430482017-06-08 20:06:40 -040021
22 # Linux/clang
Davide Pesavento9412d122018-01-02 21:52:09 -050023 # https://apt.llvm.org/
Davide Pesavento71430482017-06-08 20:06:40 -040024 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050025 env: COMPILER=clang++-3.6
Davide Pesavento71430482017-06-08 20:06:40 -040026 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050027 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080028 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050029 env: COMPILER=clang++-3.8
Davide Pesavento71430482017-06-08 20:06:40 -040030 - os: linux
Davide Pesavento844b0932018-05-07 01:00:16 -040031 env: COMPILER=clang++-3.9
Davide Pesavento71430482017-06-08 20:06:40 -040032 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050033 env: COMPILER=clang++-4.0
Davide Pesaventobcf23a32017-09-12 16:45:59 -040034 - os: linux
Davide Pesavento9412d122018-01-02 21:52:09 -050035 env: COMPILER=clang++-5.0
Davide Pesavento9412d122018-01-02 21:52:09 -050036 - os: linux
37 env: COMPILER=clang++-6.0
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050038 - os: linux
Davide Pesavento92e4d5c2018-03-11 20:05:48 -040039 env: COMPILER=clang++-7
Davide Pesavento52bc4e92018-08-23 19:08:19 -040040 - os: linux
41 env: COMPILER=clang++-8
Davide Pesavento71430482017-06-08 20:06:40 -040042
43 # macOS/clang
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050044 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080045 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040046 osx_image: xcode7.3
Davide Pesavento9412d122018-01-02 21:52:09 -050047 env: OSX_VERSION=10.11
Davide Pesavento71430482017-06-08 20:06:40 -040048 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040049 osx_image: xcode8
50 env: OSX_VERSION=10.11
51 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040052 osx_image: xcode8.3
Davide Pesavento9412d122018-01-02 21:52:09 -050053 env: OSX_VERSION=10.12
Davide Pesavento49650be2017-10-15 22:03:57 -040054 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040055 osx_image: xcode9.2
56 env: OSX_VERSION=10.12
57 - os: osx
58 osx_image: xcode9.4
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050059 env: OSX_VERSION=10.13
Davide Pesaventod89f0022018-04-28 14:48:25 -040060 - os: osx
Davide Pesavento511712d2018-11-03 18:51:10 -040061 osx_image: xcode10.1
Davide Pesavento52bc4e92018-08-23 19:08:19 -040062 env: OSX_VERSION=10.13
Davide Pesavento13fffa32018-09-30 16:21:33 -040063 - os: osx
Davide Pesavento511712d2018-11-03 18:51:10 -040064 osx_image: xcode10.1
Davide Pesavento13fffa32018-09-30 16:21:33 -040065 env: OSX_VERSION=10.13 USE_OPENSSL_1_1=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050066
67 allow_failures:
Davide Pesavento844b0932018-05-07 01:00:16 -040068 - env: COMPILER=clang++-3.6
69 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento52bc4e92018-08-23 19:08:19 -040070 - env: COMPILER=clang++-8
Davide Pesavento9412d122018-01-02 21:52:09 -050071
72 fast_finish: true
Davide Pesavento71430482017-06-08 20:06:40 -040073
Davide Pesavento844b0932018-05-07 01:00:16 -040074install: |
75 case ${COMPILER} in
76 g++-[6789])
77 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
78 travis_retry sudo apt-get -qq update
79 travis_retry sudo apt-get -qy install "${COMPILER}"
80 ;;
81 clang++-*)
82 CLANG_VERSION=${COMPILER/clang++}
83 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento52bc4e92018-08-23 19:08:19 -040084 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
85 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-8} main"
Davide Pesavento844b0932018-05-07 01:00:16 -040086 fi
87 travis_retry sudo apt-get -qq update
88 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
89 ;;
90 esac
91
Davide Pesavento71430482017-06-08 20:06:40 -040092before_script:
Davide Pesavento844b0932018-05-07 01:00:16 -040093 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9412d122018-01-02 21:52:09 -050094 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento511712d2018-11-03 18:51:10 -040095 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew update; fi
Davide Pesaventof714d1b2018-10-13 21:38:22 -040096 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
97 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
98 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
99 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesavento511712d2018-11-03 18:51:10 -0400100 # workaround for https://github.com/travis-ci/travis-ci/issues/8826
101 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew cask uninstall --force oclint || true; fi
Davide Pesavento9412d122018-01-02 21:52:09 -0500102 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento71430482017-06-08 20:06:40 -0400103 - ${CXX:-c++} --version
Davide Pesavento364eeee2017-08-10 00:46:08 -0400104 - python --version
Davide Pesavento71430482017-06-08 20:06:40 -0400105
Alexander Afanasyevb4500d92014-01-17 20:43:24 -0800106script:
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -0400107 - ./.jenkins