blob: 7705ba7e406de2d6eda88e0fcf1985825b2c1427 [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 -07003env:
4 global:
5 - JOB_NAME=limited-build
Davide Pesavento9ac95d32017-07-01 01:51:37 -04006 - WAF_JOBS=2
7
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07008matrix:
9 include:
Davide Pesavento9ac95d32017-07-01 01:51:37 -040010 # Linux/gcc
Davide Pesavento167040a2018-01-10 02:41:50 -050011 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070012 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050013 env: COMPILER=g++-5
Davide Pesavento9ac95d32017-07-01 01:51:37 -040014 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050015 env: COMPILER=g++-6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040016 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050017 env: COMPILER=g++-7
Davide Pesavento67f797f2018-04-28 14:51:27 -040018 - os: linux
19 env: COMPILER=g++-8
Davide Pesavento9d491022019-06-23 19:15:05 -040020 - os: linux
21 env: COMPILER=g++-9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040022
23 # Linux/clang
Davide Pesavento167040a2018-01-10 02:41:50 -050024 # https://apt.llvm.org/
Davide Pesavento9ac95d32017-07-01 01:51:37 -040025 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050026 env: COMPILER=clang++-3.8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040027 - os: linux
Davide Pesavento5f35f642018-05-10 19:36:03 -040028 env: COMPILER=clang++-3.9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040029 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050030 env: COMPILER=clang++-4.0
Davide Pesavento085b9e32017-09-14 23:56:18 -040031 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050032 env: COMPILER=clang++-5.0
Davide Pesavento167040a2018-01-10 02:41:50 -050033 - os: linux
34 env: COMPILER=clang++-6.0
Davide Pesaventod2148812019-07-17 16:38:10 -040035 # disable AddressSanitizer with clang 7 and 8
Davide Pesavento3626b592019-03-20 01:38:09 -040036 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesavento068a71d2018-03-15 00:52:34 -040037 - os: linux
Davide Pesavento3626b592019-03-20 01:38:09 -040038 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento69692ab2018-09-11 18:11:23 -040039 - os: linux
Davide Pesavento3626b592019-03-20 01:38:09 -040040 env: COMPILER=clang++-8 DISABLE_ASAN=yes
41 - os: linux
Davide Pesaventod2148812019-07-17 16:38:10 -040042 env: COMPILER=clang++-9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040043
44 # macOS/clang
Davide Pesavento3626b592019-03-20 01:38:09 -040045 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesaventod657d532018-06-26 22:41:28 -040046 - os: osx
Davide Pesavento9ac95d32017-07-01 01:51:37 -040047 osx_image: xcode8.3
Davide Pesavento167040a2018-01-10 02:41:50 -050048 env: OSX_VERSION=10.12
Davide Pesavento6daf2a32017-10-17 16:28:18 -040049 - os: osx
Davide Pesaventod657d532018-06-26 22:41:28 -040050 osx_image: xcode9.2
51 env: OSX_VERSION=10.12
52 - os: osx
53 osx_image: xcode9.4
Davide Pesavento068a71d2018-03-15 00:52:34 -040054 env: OSX_VERSION=10.13
Davide Pesavento69692ab2018-09-11 18:11:23 -040055 - os: osx
Davide Pesavento5e1124c2018-11-06 14:40:50 -050056 osx_image: xcode10.1
Davide Pesavento69692ab2018-09-11 18:11:23 -040057 env: OSX_VERSION=10.13
Davide Pesavento3626b592019-03-20 01:38:09 -040058 - os: osx
59 osx_image: xcode10.2
60 env: OSX_VERSION=10.14
Davide Pesaventod2148812019-07-17 16:38:10 -040061 - os: osx
62 osx_image: xcode11
63 env: OSX_VERSION=10.14
Davide Pesavento167040a2018-01-10 02:41:50 -050064
65 allow_failures:
Davide Pesaventod2148812019-07-17 16:38:10 -040066 - env: COMPILER=clang++-9
Davide Pesavento167040a2018-01-10 02:41:50 -050067
68 fast_finish: true
Davide Pesavento9ac95d32017-07-01 01:51:37 -040069
Davide Pesavento5f35f642018-05-10 19:36:03 -040070install: |
71 case ${COMPILER} in
Davide Pesavento3626b592019-03-20 01:38:09 -040072 g++-5)
73 ;;
74 g++-*)
Davide Pesavento5f35f642018-05-10 19:36: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 Pesavento69692ab2018-09-11 18:11:23 -040082 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesavento3626b592019-03-20 01:38:09 -040083 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-9} main"
Davide Pesavento5f35f642018-05-10 19:36: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 Pesavento9ac95d32017-07-01 01:51:37 -040090before_script:
Davide Pesavento5f35f642018-05-10 19:36:03 -040091 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento167040a2018-01-10 02:41:50 -050092 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento3626b592019-03-20 01:38:09 -040093 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesavento5e1124c2018-11-06 14:40:50 -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 Pesavento167040a2018-01-10 02:41:50 -050098 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -040099 - ${CXX:-c++} --version
Davide Pesavento8ca138d2017-08-10 21:36:30 -0400100 - python --version
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400101
Yi Huang71929b32014-01-29 21:47:09 -0700102script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -0700103 - ./.jenkins