blob: 2ac52ac02cc527cdacdba0230c99e55b8325a17a [file] [log] [blame]
Davide Pesavento167040a2018-01-10 02:41:50 -05001language: cpp
Davide Pesavento5f35f642018-05-10 19:36:03 -04002dist: xenial
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07003sudo: required
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesavento9ac95d32017-07-01 01:51:37 -04007 - WAF_JOBS=2
8
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07009matrix:
10 include:
Davide Pesavento9ac95d32017-07-01 01:51:37 -040011 # Linux/gcc
Davide Pesavento167040a2018-01-10 02:41:50 -050012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070013 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050014 env: COMPILER=g++-5
Davide Pesavento9ac95d32017-07-01 01:51:37 -040015 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050016 env: COMPILER=g++-6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040017 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050018 env: COMPILER=g++-7
Davide Pesavento67f797f2018-04-28 14:51:27 -040019 - os: linux
20 env: COMPILER=g++-8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040021
22 # Linux/clang
Davide Pesavento167040a2018-01-10 02:41:50 -050023 # https://apt.llvm.org/
Davide Pesavento9ac95d32017-07-01 01:51:37 -040024 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050025 env: COMPILER=clang++-3.6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040026 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050027 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070028 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050029 env: COMPILER=clang++-3.8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040030 - os: linux
Davide Pesavento5f35f642018-05-10 19:36:03 -040031 env: COMPILER=clang++-3.9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040032 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050033 env: COMPILER=clang++-4.0
Davide Pesavento085b9e32017-09-14 23:56:18 -040034 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050035 env: COMPILER=clang++-5.0
Davide Pesavento167040a2018-01-10 02:41:50 -050036 - os: linux
37 env: COMPILER=clang++-6.0
Davide Pesavento068a71d2018-03-15 00:52:34 -040038 - os: linux
39 env: COMPILER=clang++-7
Davide Pesavento9ac95d32017-07-01 01:51:37 -040040
41 # macOS/clang
Davide Pesavento068a71d2018-03-15 00:52:34 -040042 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070043 - os: osx
Davide Pesavento9ac95d32017-07-01 01:51:37 -040044 osx_image: xcode7.3
Davide Pesavento167040a2018-01-10 02:41:50 -050045 env: OSX_VERSION=10.11
Davide Pesavento9ac95d32017-07-01 01:51:37 -040046 - os: osx
Davide Pesaventod657d532018-06-26 22:41:28 -040047 osx_image: xcode8
48 env: OSX_VERSION=10.11
49 - os: osx
Davide Pesavento9ac95d32017-07-01 01:51:37 -040050 osx_image: xcode8.3
Davide Pesavento167040a2018-01-10 02:41:50 -050051 env: OSX_VERSION=10.12
Davide Pesavento6daf2a32017-10-17 16:28:18 -040052 - os: osx
Davide Pesaventod657d532018-06-26 22:41:28 -040053 osx_image: xcode9.2
54 env: OSX_VERSION=10.12
55 - os: osx
56 osx_image: xcode9.4
Davide Pesavento068a71d2018-03-15 00:52:34 -040057 env: OSX_VERSION=10.13
Davide Pesavento167040a2018-01-10 02:41:50 -050058
59 allow_failures:
Davide Pesavento5f35f642018-05-10 19:36:03 -040060 - env: COMPILER=clang++-3.6
61 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento167040a2018-01-10 02:41:50 -050062
63 fast_finish: true
Davide Pesavento9ac95d32017-07-01 01:51:37 -040064
Davide Pesavento5f35f642018-05-10 19:36:03 -040065install: |
66 case ${COMPILER} in
67 g++-[6789])
68 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
69 travis_retry sudo apt-get -qq update
70 travis_retry sudo apt-get -qy install "${COMPILER}"
71 ;;
72 clang++-*)
73 CLANG_VERSION=${COMPILER/clang++}
74 if [[ ${CLANG_VERSION} != "-3."* ]]; then
75 wget -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
76 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-7} main"
77 fi
78 travis_retry sudo apt-get -qq update
79 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
80 ;;
81 esac
82
Davide Pesavento9ac95d32017-07-01 01:51:37 -040083before_script:
Davide Pesavento5f35f642018-05-10 19:36:03 -040084 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento167040a2018-01-10 02:41:50 -050085 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
86 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -040087 - ${CXX:-c++} --version
Davide Pesavento8ca138d2017-08-10 21:36:30 -040088 - python --version
Davide Pesavento9ac95d32017-07-01 01:51:37 -040089
Yi Huang71929b32014-01-29 21:47:09 -070090script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070091 - ./.jenkins