blob: 984e8aceee6b03a10ec4b85422f7d018e5ed4e99 [file] [log] [blame]
Davide Pesavento4a9395b2018-05-24 00:23:22 -04001language: cpp
2dist: xenial
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -08003sudo: required
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -08004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesaventoc2489b42017-10-28 17:19:08 -04007 - WAF_JOBS=2
8
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -08009matrix:
10 include:
Davide Pesaventoc2489b42017-10-28 17:19:08 -040011 # Linux/gcc
Davide Pesavento4a9395b2018-05-24 00:23:22 -040012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080013 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040014 env: COMPILER=g++-5
Davide Pesaventoc2489b42017-10-28 17:19:08 -040015 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040016 env: COMPILER=g++-6
Davide Pesaventoc2489b42017-10-28 17:19:08 -040017 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040018 env: COMPILER=g++-7
Davide Pesaventoc2489b42017-10-28 17:19:08 -040019 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040020 env: COMPILER=g++-8
Davide Pesaventoc2489b42017-10-28 17:19:08 -040021
22 # Linux/clang
Davide Pesavento4a9395b2018-05-24 00:23:22 -040023 # https://apt.llvm.org/
Davide Pesaventoc2489b42017-10-28 17:19:08 -040024 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040025 env: COMPILER=clang++-3.5
Davide Pesaventoc2489b42017-10-28 17:19:08 -040026 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040027 env: COMPILER=clang++-3.6
Davide Pesaventoc2489b42017-10-28 17:19:08 -040028 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040029 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080030 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040031 env: COMPILER=clang++-3.8
Davide Pesaventoc2489b42017-10-28 17:19:08 -040032 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040033 env: COMPILER=clang++-3.9
Davide Pesaventoc2489b42017-10-28 17:19:08 -040034 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040035 env: COMPILER=clang++-4.0
Davide Pesaventoc2489b42017-10-28 17:19:08 -040036 - os: linux
Davide Pesavento4a9395b2018-05-24 00:23:22 -040037 env: COMPILER=clang++-5.0
38 - os: linux
39 env: COMPILER=clang++-6.0
40 - os: linux
41 env: COMPILER=clang++-7
Davide Pesaventoc2489b42017-10-28 17:19:08 -040042
43 # macOS/clang
Davide Pesavento4a9395b2018-05-24 00:23:22 -040044 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080045 - os: osx
Davide Pesaventoc2489b42017-10-28 17:19:08 -040046 osx_image: xcode7.3
Davide Pesavento4a9395b2018-05-24 00:23:22 -040047 env: OSX_VERSION=10.11
Davide Pesaventoc2489b42017-10-28 17:19:08 -040048 - os: osx
49 osx_image: xcode8.3
Davide Pesavento4a9395b2018-05-24 00:23:22 -040050 env: OSX_VERSION=10.12
Davide Pesaventoc2489b42017-10-28 17:19:08 -040051 - os: osx
Davide Pesavento4a9395b2018-05-24 00:23:22 -040052 osx_image: xcode9.3
53 env: OSX_VERSION=10.13
54
55 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
Davide Pesaventoc2489b42017-10-28 17:19:08 -040088
89before_script:
Davide Pesavento4a9395b2018-05-24 00:23:22 -040090 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
91 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
92 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesaventoc2489b42017-10-28 17:19:08 -040093 - ${CXX:-c++} --version
94 - python --version
95
Yingdi Yu906c2ea2014-10-31 11:24:50 -070096script:
97 - ./.jenkins