blob: 7705ba7e406de2d6eda88e0fcf1985825b2c1427 [file] [log] [blame]
Davide Pesavento9a659d02018-01-10 02:55:43 -05001language: cpp
Davide Pesavento26ea1ac2018-05-10 20:20:03 -04002dist: xenial
Eric Newberry9737aa82016-12-27 23:03:49 -07003env:
4 global:
5 - JOB_NAME=limited-build
Davide Pesavento44660cf2017-08-16 00:44:23 -04006 - WAF_JOBS=2
Davide Pesaventof085ed12017-06-30 14:59:52 -04007
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -07008matrix:
Davide Pesavento4a1edc62016-05-03 18:03:19 +02009 include:
Davide Pesaventof085ed12017-06-30 14:59:52 -040010 # Linux/gcc
Davide Pesavento9a659d02018-01-10 02:55:43 -050011 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -070012 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050013 env: COMPILER=g++-5
Davide Pesaventof085ed12017-06-30 14:59:52 -040014 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050015 env: COMPILER=g++-6
Davide Pesaventof085ed12017-06-30 14:59:52 -040016 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050017 env: COMPILER=g++-7
Davide Pesavento79d12c62018-04-30 19:28:46 -040018 - os: linux
19 env: COMPILER=g++-8
Davide Pesavento0353bae2019-06-23 19:18:08 -040020 - os: linux
21 env: COMPILER=g++-9
Davide Pesaventof085ed12017-06-30 14:59:52 -040022
23 # Linux/clang
Davide Pesavento9a659d02018-01-10 02:55:43 -050024 # https://apt.llvm.org/
Davide Pesaventof085ed12017-06-30 14:59:52 -040025 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050026 env: COMPILER=clang++-3.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040027 - os: linux
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040028 env: COMPILER=clang++-3.9
Davide Pesaventof085ed12017-06-30 14:59:52 -040029 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050030 env: COMPILER=clang++-4.0
Davide Pesaventob5e06e62017-09-15 22:30:01 -040031 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050032 env: COMPILER=clang++-5.0
Davide Pesavento9a659d02018-01-10 02:55:43 -050033 - os: linux
34 env: COMPILER=clang++-6.0
Davide Pesaventoc1eb2fc2019-07-17 15:44:33 -040035 # disable AddressSanitizer with clang 7 and 8
Davide Pesaventoc16ec572019-03-18 18:40:48 -040036 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040037 - os: linux
Davide Pesaventoc16ec572019-03-18 18:40:48 -040038 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento88beb4d2018-09-11 18:14:18 -040039 - os: linux
Davide Pesaventoc16ec572019-03-18 18:40:48 -040040 env: COMPILER=clang++-8 DISABLE_ASAN=yes
41 - os: linux
Davide Pesaventoc1eb2fc2019-07-17 15:44:33 -040042 env: COMPILER=clang++-9
Davide Pesaventof085ed12017-06-30 14:59:52 -040043
44 # macOS/clang
Davide Pesaventoc16ec572019-03-18 18:40:48 -040045 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesavento302941e2018-07-21 18:55:56 -040046 - os: osx
Davide Pesaventof085ed12017-06-30 14:59:52 -040047 osx_image: xcode8.3
Davide Pesavento9a659d02018-01-10 02:55:43 -050048 env: OSX_VERSION=10.12
Davide Pesavento19280242017-10-19 01:30:33 -040049 - os: osx
Davide Pesavento302941e2018-07-21 18:55:56 -040050 osx_image: xcode9.2
51 env: OSX_VERSION=10.12
52 - os: osx
53 osx_image: xcode9.4
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040054 env: OSX_VERSION=10.13
Davide Pesavento88beb4d2018-09-11 18:14:18 -040055 - os: osx
Davide Pesavento162bdbb2018-11-06 16:00:44 -050056 osx_image: xcode10.1
Davide Pesavento88beb4d2018-09-11 18:14:18 -040057 env: OSX_VERSION=10.13
Davide Pesaventoc16ec572019-03-18 18:40:48 -040058 - os: osx
59 osx_image: xcode10.2
60 env: OSX_VERSION=10.14
Davide Pesaventoc1eb2fc2019-07-17 15:44:33 -040061 - os: osx
62 osx_image: xcode11
63 env: OSX_VERSION=10.14
Davide Pesavento9a659d02018-01-10 02:55:43 -050064
65 allow_failures:
Davide Pesaventoc1eb2fc2019-07-17 15:44:33 -040066 - env: COMPILER=clang++-9
Davide Pesavento9a659d02018-01-10 02:55:43 -050067
68 fast_finish: true
Davide Pesaventof085ed12017-06-30 14:59:52 -040069
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040070install: |
71 case ${COMPILER} in
Davide Pesaventoc16ec572019-03-18 18:40:48 -040072 g++-5)
73 ;;
74 g++-*)
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040075 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
76 travis_retry sudo apt-get -qq update
77 travis_retry sudo apt-get -qy install "${COMPILER}"
78 ;;
79 clang++-*)
80 CLANG_VERSION=${COMPILER/clang++}
81 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento88beb4d2018-09-11 18:14:18 -040082 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesaventoc16ec572019-03-18 18:40:48 -040083 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-9} main"
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040084 fi
85 travis_retry sudo apt-get -qq update
86 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
87 ;;
88 esac
89
Davide Pesaventof085ed12017-06-30 14:59:52 -040090before_script:
Davide Pesavento26ea1ac2018-05-10 20:20:03 -040091 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento9a659d02018-01-10 02:55:43 -050092 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesaventoc16ec572019-03-18 18:40:48 -040093 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesavento162bdbb2018-11-06 16:00:44 -050094 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
95 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
96 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
97 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesavento9a659d02018-01-10 02:55:43 -050098 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesaventof085ed12017-06-30 14:59:52 -040099 - ${CXX:-c++} --version
Davide Pesavento5485ca92017-08-10 21:47:42 -0400100 - python --version
Davide Pesaventof085ed12017-06-30 14:59:52 -0400101
Joao Pereiraef326da2015-05-27 18:27:40 -0400102script:
Joao Pereiraef326da2015-05-27 18:27:40 -0400103 - ./.jenkins