blob: ef557b694499f6af5c8707320cc66fcf298157c9 [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 Pesavento71430482017-06-08 20:06:40 -040040
41 # macOS/clang
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050042 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyevce306ca2015-12-09 12:59:05 -080043 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040044 osx_image: xcode7.3
Davide Pesavento9412d122018-01-02 21:52:09 -050045 env: OSX_VERSION=10.11
Davide Pesavento71430482017-06-08 20:06:40 -040046 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040047 osx_image: xcode8
48 env: OSX_VERSION=10.11
49 - os: osx
Davide Pesavento71430482017-06-08 20:06:40 -040050 osx_image: xcode8.3
Davide Pesavento9412d122018-01-02 21:52:09 -050051 env: OSX_VERSION=10.12
Davide Pesavento49650be2017-10-15 22:03:57 -040052 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040053 osx_image: xcode9.2
54 env: OSX_VERSION=10.12
55 - os: osx
56 osx_image: xcode9.4
Davide Pesavento8a8c01b2018-03-11 00:07:52 -050057 env: OSX_VERSION=10.13
Davide Pesaventod89f0022018-04-28 14:48:25 -040058 - os: osx
Davide Pesaventoca660f12018-06-16 14:01:51 -040059 osx_image: xcode9.4
Davide Pesaventod89f0022018-04-28 14:48:25 -040060 env: OSX_VERSION=10.13 USE_OPENSSL_1_1=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050061
62 allow_failures:
Davide Pesavento844b0932018-05-07 01:00:16 -040063 - env: COMPILER=clang++-3.6
64 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesaventod89f0022018-04-28 14:48:25 -040065 - env: OSX_VERSION=10.13 USE_OPENSSL_1_1=yes
Davide Pesavento9412d122018-01-02 21:52:09 -050066
67 fast_finish: true
Davide Pesavento71430482017-06-08 20:06:40 -040068
Davide Pesavento844b0932018-05-07 01:00:16 -040069install: |
70 case ${COMPILER} in
71 g++-[6789])
72 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
73 travis_retry sudo apt-get -qq update
74 travis_retry sudo apt-get -qy install "${COMPILER}"
75 ;;
76 clang++-*)
77 CLANG_VERSION=${COMPILER/clang++}
78 if [[ ${CLANG_VERSION} != "-3."* ]]; then
79 wget -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
80 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-7} main"
81 fi
82 travis_retry sudo apt-get -qq update
83 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
84 ;;
85 esac
86
Davide Pesavento71430482017-06-08 20:06:40 -040087before_script:
Davide Pesavento844b0932018-05-07 01:00:16 -040088 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9412d122018-01-02 21:52:09 -050089 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
90 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento71430482017-06-08 20:06:40 -040091 - ${CXX:-c++} --version
Davide Pesavento364eeee2017-08-10 00:46:08 -040092 - python --version
Davide Pesavento71430482017-06-08 20:06:40 -040093
Alexander Afanasyevb4500d92014-01-17 20:43:24 -080094script:
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -040095 - ./.jenkins