blob: 984e8aceee6b03a10ec4b85422f7d018e5ed4e99 [file] [log] [blame]
Davide Pesavento759214f2018-03-11 21:03:32 -04001language: cpp
Davide Pesavento98ff2bc2018-05-24 00:10:31 -04002dist: xenial
Alexander Afanasyevf34a3552017-08-13 21:17:05 -04003sudo: required
Alexander Afanasyevf34a3552017-08-13 21:17:05 -04004env:
5 global:
6 - JOB_NAME=limited-build
7 - WAF_JOBS=2
8
9matrix:
10 include:
11 # Linux/gcc
Davide Pesavento759214f2018-03-11 21:03:32 -040012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040013 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040014 env: COMPILER=g++-5
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040015 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040016 env: COMPILER=g++-6
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040017 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040018 env: COMPILER=g++-7
Davide Pesavento98ff2bc2018-05-24 00:10:31 -040019 - os: linux
20 env: COMPILER=g++-8
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040021
22 # Linux/clang
Davide Pesavento759214f2018-03-11 21:03:32 -040023 # https://apt.llvm.org/
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040024 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040025 env: COMPILER=clang++-3.5
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040026 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040027 env: COMPILER=clang++-3.6
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040028 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040029 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040030 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040031 env: COMPILER=clang++-3.8
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040032 - os: linux
Davide Pesavento98ff2bc2018-05-24 00:10:31 -040033 env: COMPILER=clang++-3.9
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040034 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040035 env: COMPILER=clang++-4.0
Davide Pesavento3c29d632017-09-23 01:52:19 -040036 - os: linux
Davide Pesavento759214f2018-03-11 21:03:32 -040037 env: COMPILER=clang++-5.0
Davide Pesavento759214f2018-03-11 21:03:32 -040038 - os: linux
39 env: COMPILER=clang++-6.0
Davide Pesavento98ff2bc2018-05-24 00:10:31 -040040 - os: linux
41 env: COMPILER=clang++-7
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040042
43 # macOS/clang
Davide Pesavento759214f2018-03-11 21:03:32 -040044 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040045 - os: osx
46 osx_image: xcode7.3
Davide Pesavento759214f2018-03-11 21:03:32 -040047 env: OSX_VERSION=10.11
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040048 - os: osx
49 osx_image: xcode8.3
Davide Pesavento759214f2018-03-11 21:03:32 -040050 env: OSX_VERSION=10.12
Davide Pesavento30ab3ff2017-10-19 01:48:29 -040051 - os: osx
Davide Pesavento98ff2bc2018-05-24 00:10:31 -040052 osx_image: xcode9.3
Davide Pesavento759214f2018-03-11 21:03:32 -040053 env: OSX_VERSION=10.13
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040054
Davide Pesavento98ff2bc2018-05-24 00:10:31 -040055 allow_failures:
56 - env: COMPILER=g++-6
57 - env: COMPILER=g++-7
58 - env: COMPILER=g++-8
59 - env: COMPILER=clang++-3.5
60 - env: COMPILER=clang++-3.6
61 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
62 - env: COMPILER=clang++-3.8
63 - env: COMPILER=clang++-3.9
64 - env: COMPILER=clang++-4.0
65 - env: COMPILER=clang++-5.0
66 - env: COMPILER=clang++-6.0
67 - env: COMPILER=clang++-7
68
69 fast_finish: true
70
71install: |
72 case ${COMPILER} in
73 g++-[6789])
74 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
75 travis_retry sudo apt-get -qq update
76 travis_retry sudo apt-get -qy install "${COMPILER}"
77 ;;
78 clang++-*)
79 CLANG_VERSION=${COMPILER/clang++}
80 if [[ ${CLANG_VERSION} != "-3."* ]]; then
81 wget -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
82 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-7} main"
83 fi
84 travis_retry sudo apt-get -qq update
85 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
86 ;;
87 esac
88
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040089before_script:
Davide Pesavento98ff2bc2018-05-24 00:10:31 -040090 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento759214f2018-03-11 21:03:32 -040091 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
92 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040093 - ${CXX:-c++} --version
94 - python --version
95
96script:
97 - ./.jenkins