blob: 47579e9afa17f8a9b3e944dd15e7cfa6cd639f86 [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 Pesavento9ac95d32017-07-01 01:51:37 -040020
21 # Linux/clang
Davide Pesavento167040a2018-01-10 02:41:50 -050022 # https://apt.llvm.org/
Davide Pesavento9ac95d32017-07-01 01:51:37 -040023 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050024 env: COMPILER=clang++-3.8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040025 - os: linux
Davide Pesavento5f35f642018-05-10 19:36:03 -040026 env: COMPILER=clang++-3.9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040027 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050028 env: COMPILER=clang++-4.0
Davide Pesavento085b9e32017-09-14 23:56:18 -040029 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050030 env: COMPILER=clang++-5.0
Davide Pesavento167040a2018-01-10 02:41:50 -050031 - os: linux
32 env: COMPILER=clang++-6.0
Davide Pesavento3626b592019-03-20 01:38:09 -040033 # temporarily disable AddressSanitizer on clang-7 and later
34 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesavento068a71d2018-03-15 00:52:34 -040035 - os: linux
Davide Pesavento3626b592019-03-20 01:38:09 -040036 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento69692ab2018-09-11 18:11:23 -040037 - os: linux
Davide Pesavento3626b592019-03-20 01:38:09 -040038 env: COMPILER=clang++-8 DISABLE_ASAN=yes
39 - os: linux
40 env: COMPILER=clang++-9 DISABLE_ASAN=yes
Davide Pesavento9ac95d32017-07-01 01:51:37 -040041
42 # macOS/clang
Davide Pesavento3626b592019-03-20 01:38:09 -040043 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesaventod657d532018-06-26 22:41:28 -040044 - os: osx
Davide Pesavento9ac95d32017-07-01 01:51:37 -040045 osx_image: xcode8.3
Davide Pesavento167040a2018-01-10 02:41:50 -050046 env: OSX_VERSION=10.12
Davide Pesavento6daf2a32017-10-17 16:28:18 -040047 - os: osx
Davide Pesaventod657d532018-06-26 22:41:28 -040048 osx_image: xcode9.2
49 env: OSX_VERSION=10.12
50 - os: osx
51 osx_image: xcode9.4
Davide Pesavento068a71d2018-03-15 00:52:34 -040052 env: OSX_VERSION=10.13
Davide Pesavento69692ab2018-09-11 18:11:23 -040053 - os: osx
Davide Pesavento5e1124c2018-11-06 14:40:50 -050054 osx_image: xcode10.1
Davide Pesavento69692ab2018-09-11 18:11:23 -040055 env: OSX_VERSION=10.13
Davide Pesavento3626b592019-03-20 01:38:09 -040056 - os: osx
57 osx_image: xcode10.2
58 env: OSX_VERSION=10.14
Davide Pesavento167040a2018-01-10 02:41:50 -050059
60 allow_failures:
Davide Pesavento3626b592019-03-20 01:38:09 -040061 - env: COMPILER=clang++-9 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
Davide Pesavento3626b592019-03-20 01:38:09 -040067 g++-5)
68 ;;
69 g++-*)
Davide Pesavento5f35f642018-05-10 19:36:03 -040070 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
71 travis_retry sudo apt-get -qq update
72 travis_retry sudo apt-get -qy install "${COMPILER}"
73 ;;
74 clang++-*)
75 CLANG_VERSION=${COMPILER/clang++}
76 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento69692ab2018-09-11 18:11:23 -040077 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesavento3626b592019-03-20 01:38:09 -040078 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 -040079 fi
80 travis_retry sudo apt-get -qq update
81 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
82 ;;
83 esac
84
Davide Pesavento9ac95d32017-07-01 01:51:37 -040085before_script:
Davide Pesavento5f35f642018-05-10 19:36:03 -040086 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento167040a2018-01-10 02:41:50 -050087 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento3626b592019-03-20 01:38:09 -040088 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesavento5e1124c2018-11-06 14:40:50 -050089 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
90 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
91 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
92 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Davide Pesavento167040a2018-01-10 02:41:50 -050093 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -040094 - ${CXX:-c++} --version
Davide Pesavento8ca138d2017-08-10 21:36:30 -040095 - python --version
Davide Pesavento9ac95d32017-07-01 01:51:37 -040096
Yi Huang71929b32014-01-29 21:47:09 -070097script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070098 - ./.jenkins