blob: 412d7bc09983cbb1a053f4409e9e99cdee6c1165 [file] [log] [blame]
Davide Pesavento9a659d02018-01-10 02:55:43 -05001language: cpp
Davide Pesavento26ea1ac2018-05-10 20:20:03 -04002dist: xenial
Davide Pesavento4a1edc62016-05-03 18:03:19 +02003sudo: required
Eric Newberry9737aa82016-12-27 23:03:49 -07004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesavento44660cf2017-08-16 00:44:23 -04007 - WAF_JOBS=2
Davide Pesaventof085ed12017-06-30 14:59:52 -04008
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -07009matrix:
Davide Pesavento4a1edc62016-05-03 18:03:19 +020010 include:
Davide Pesaventof085ed12017-06-30 14:59:52 -040011 # Linux/gcc
Davide Pesavento9a659d02018-01-10 02:55:43 -050012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -070013 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050014 env: COMPILER=g++-5
Davide Pesaventof085ed12017-06-30 14:59:52 -040015 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050016 env: COMPILER=g++-6
Davide Pesaventof085ed12017-06-30 14:59:52 -040017 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050018 env: COMPILER=g++-7
Davide Pesavento79d12c62018-04-30 19:28:46 -040019 - os: linux
20 env: COMPILER=g++-8
Davide Pesaventof085ed12017-06-30 14:59:52 -040021
22 # Linux/clang
Davide Pesavento9a659d02018-01-10 02:55:43 -050023 # https://apt.llvm.org/
Davide Pesaventof085ed12017-06-30 14:59:52 -040024 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050025 env: COMPILER=clang++-3.6
Davide Pesaventof085ed12017-06-30 14:59:52 -040026 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050027 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento4a1edc62016-05-03 18:03:19 +020028 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050029 env: COMPILER=clang++-3.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040030 - os: linux
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040031 env: COMPILER=clang++-3.9
Davide Pesaventof085ed12017-06-30 14:59:52 -040032 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050033 env: COMPILER=clang++-4.0
Davide Pesaventob5e06e62017-09-15 22:30:01 -040034 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050035 env: COMPILER=clang++-5.0
Davide Pesavento9a659d02018-01-10 02:55:43 -050036 - os: linux
37 env: COMPILER=clang++-6.0
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040038 - os: linux
39 env: COMPILER=clang++-7
Davide Pesavento88beb4d2018-09-11 18:14:18 -040040 - os: linux
41 env: COMPILER=clang++-8
Davide Pesaventof085ed12017-06-30 14:59:52 -040042
43 # macOS/clang
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040044 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -070045 - os: osx
Davide Pesaventof085ed12017-06-30 14:59:52 -040046 osx_image: xcode7.3
Davide Pesavento9a659d02018-01-10 02:55:43 -050047 env: OSX_VERSION=10.11
Davide Pesaventof085ed12017-06-30 14:59:52 -040048 - os: osx
Davide Pesavento302941e2018-07-21 18:55:56 -040049 osx_image: xcode8
50 env: OSX_VERSION=10.11
51 - os: osx
Davide Pesaventof085ed12017-06-30 14:59:52 -040052 osx_image: xcode8.3
Davide Pesavento9a659d02018-01-10 02:55:43 -050053 env: OSX_VERSION=10.12
Davide Pesavento19280242017-10-19 01:30:33 -040054 - os: osx
Davide Pesavento302941e2018-07-21 18:55:56 -040055 osx_image: xcode9.2
56 env: OSX_VERSION=10.12
57 - os: osx
58 osx_image: xcode9.4
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040059 env: OSX_VERSION=10.13
Davide Pesavento88beb4d2018-09-11 18:14:18 -040060 - os: osx
Davide Pesavento162bdbb2018-11-06 16:00:44 -050061 osx_image: xcode10.1
Davide Pesavento88beb4d2018-09-11 18:14:18 -040062 env: OSX_VERSION=10.13
Davide Pesavento9a659d02018-01-10 02:55:43 -050063
64 allow_failures:
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040065 - env: COMPILER=clang++-3.6
66 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento88beb4d2018-09-11 18:14:18 -040067 - env: COMPILER=clang++-8
Davide Pesavento9a659d02018-01-10 02:55:43 -050068
69 fast_finish: true
Davide Pesaventof085ed12017-06-30 14:59:52 -040070
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040071install: |
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
Davide Pesavento88beb4d2018-09-11 18:14:18 -040081 travis_retry wget -nv -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/-8} main"
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040083 fi
84 travis_retry sudo apt-get -qq update
85 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
86 ;;
87 esac
88
Davide Pesaventof085ed12017-06-30 14:59:52 -040089before_script:
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040090 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9a659d02018-01-10 02:55:43 -050091 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento162bdbb2018-11-06 16:00:44 -050092 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew update; fi
93 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
94 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
95 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
96 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
97 # workaround for https://github.com/travis-ci/travis-ci/issues/8826
98 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew cask uninstall --force oclint || true; fi
Davide Pesavento9a659d02018-01-10 02:55:43 -050099 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesaventof085ed12017-06-30 14:59:52 -0400100 - ${CXX:-c++} --version
Davide Pesavento5485ca92017-08-10 21:47:42 -0400101 - python --version
Davide Pesaventof085ed12017-06-30 14:59:52 -0400102
Joao Pereiraef326da2015-05-27 18:27:40 -0400103script:
Joao Pereiraef326da2015-05-27 18:27:40 -0400104 - ./.jenkins