blob: 319269bf1904dedc105a116c648d426c1fe8cd60 [file] [log] [blame]
Davide Pesavento167040a2018-01-10 02:41:50 -05001language: cpp
2dist: trusty
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07003sudo: required
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesavento9ac95d32017-07-01 01:51:37 -04007 - WAF_JOBS=2
8
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -07009matrix:
10 include:
Davide Pesavento9ac95d32017-07-01 01:51:37 -040011 # Linux/gcc
Davide Pesavento167040a2018-01-10 02:41:50 -050012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070013 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050014 env: COMPILER=g++-4.8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040015 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050016 env: COMPILER=g++-4.9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040017 addons:
18 apt:
19 sources: ubuntu-toolchain-r-test
20 packages: g++-4.9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040021 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050022 env: COMPILER=g++-5
Davide Pesavento9ac95d32017-07-01 01:51:37 -040023 addons:
24 apt:
25 sources: ubuntu-toolchain-r-test
26 packages: g++-5
Davide Pesavento9ac95d32017-07-01 01:51:37 -040027 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050028 env: COMPILER=g++-6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040029 addons:
30 apt:
31 sources: ubuntu-toolchain-r-test
32 packages: g++-6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040033 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050034 env: COMPILER=g++-7
Davide Pesavento9ac95d32017-07-01 01:51:37 -040035 addons:
36 apt:
37 sources: ubuntu-toolchain-r-test
38 packages: g++-7
Davide Pesavento9ac95d32017-07-01 01:51:37 -040039
40 # Linux/clang
Davide Pesavento167040a2018-01-10 02:41:50 -050041 # https://apt.llvm.org/
Davide Pesavento9ac95d32017-07-01 01:51:37 -040042 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050043 env: COMPILER=clang++-3.5
Davide Pesavento9ac95d32017-07-01 01:51:37 -040044 addons:
45 apt:
46 packages: clang-3.5
Davide Pesavento9ac95d32017-07-01 01:51:37 -040047 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050048 env: COMPILER=clang++-3.6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040049 addons:
50 apt:
51 packages: clang-3.6
Davide Pesavento9ac95d32017-07-01 01:51:37 -040052 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050053 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento9ac95d32017-07-01 01:51:37 -040054 addons:
55 apt:
Davide Pesavento167040a2018-01-10 02:41:50 -050056 sources: ["llvm-toolchain-precise-3.7", "ubuntu-toolchain-r-test"]
Davide Pesavento9ac95d32017-07-01 01:51:37 -040057 packages: clang-3.7
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070058 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050059 env: COMPILER=clang++-3.8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040060 addons:
61 apt:
Davide Pesavento167040a2018-01-10 02:41:50 -050062 sources: ["llvm-toolchain-precise-3.8", "ubuntu-toolchain-r-test"]
Davide Pesavento9ac95d32017-07-01 01:51:37 -040063 packages: clang-3.8
Davide Pesavento9ac95d32017-07-01 01:51:37 -040064 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050065 env: COMPILER=clang++-3.9 DISABLE_ASAN=yes
Davide Pesavento9ac95d32017-07-01 01:51:37 -040066 addons:
67 apt:
Davide Pesavento167040a2018-01-10 02:41:50 -050068 sources: ["llvm-toolchain-trusty-3.9", "ubuntu-toolchain-r-test"]
Davide Pesavento9ac95d32017-07-01 01:51:37 -040069 packages: clang-3.9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040070 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050071 env: COMPILER=clang++-4.0
Davide Pesavento9ac95d32017-07-01 01:51:37 -040072 addons:
73 apt:
Davide Pesavento167040a2018-01-10 02:41:50 -050074 sources: ["llvm-toolchain-trusty-4.0", "ubuntu-toolchain-r-test"]
Davide Pesavento9ac95d32017-07-01 01:51:37 -040075 packages: clang-4.0
Davide Pesavento085b9e32017-09-14 23:56:18 -040076 - os: linux
Davide Pesavento167040a2018-01-10 02:41:50 -050077 env: COMPILER=clang++-5.0
Davide Pesavento085b9e32017-09-14 23:56:18 -040078 addons:
79 apt:
Davide Pesavento167040a2018-01-10 02:41:50 -050080 sources: ["llvm-toolchain-trusty-5.0", "ubuntu-toolchain-r-test"]
Davide Pesavento085b9e32017-09-14 23:56:18 -040081 packages: clang-5.0
Davide Pesavento167040a2018-01-10 02:41:50 -050082 - os: linux
83 env: COMPILER=clang++-6.0
84 addons:
85 apt:
Davide Pesavento068a71d2018-03-15 00:52:34 -040086 sources: ["llvm-toolchain-trusty-6.0", "ubuntu-toolchain-r-test"]
Davide Pesavento167040a2018-01-10 02:41:50 -050087 packages: clang-6.0
Davide Pesavento068a71d2018-03-15 00:52:34 -040088 - os: linux
89 env: COMPILER=clang++-7
90 addons:
91 apt:
92 sources: ["llvm-toolchain-trusty", "ubuntu-toolchain-r-test"]
93 packages: clang-7
Davide Pesavento9ac95d32017-07-01 01:51:37 -040094
95 # macOS/clang
Davide Pesavento068a71d2018-03-15 00:52:34 -040096 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070097 - os: osx
Davide Pesavento9ac95d32017-07-01 01:51:37 -040098 osx_image: xcode7.3
Davide Pesavento167040a2018-01-10 02:41:50 -050099 env: OSX_VERSION=10.11
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400100 - os: osx
101 osx_image: xcode8.3
Davide Pesavento167040a2018-01-10 02:41:50 -0500102 env: OSX_VERSION=10.12
Davide Pesavento6daf2a32017-10-17 16:28:18 -0400103 - os: osx
Davide Pesavento167040a2018-01-10 02:41:50 -0500104 osx_image: xcode9.2
105 env: OSX_VERSION=10.12
Davide Pesavento068a71d2018-03-15 00:52:34 -0400106 - os: osx
107 osx_image: xcode9.3beta
108 env: OSX_VERSION=10.13
Davide Pesavento167040a2018-01-10 02:41:50 -0500109
110 allow_failures:
Davide Pesavento068a71d2018-03-15 00:52:34 -0400111 - env: COMPILER=clang++-7
Davide Pesavento167040a2018-01-10 02:41:50 -0500112
113 fast_finish: true
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400114
115before_script:
Davide Pesavento167040a2018-01-10 02:41:50 -0500116 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-14.04"; fi
117 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
118 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400119 - ${CXX:-c++} --version
Davide Pesavento8ca138d2017-08-10 21:36:30 -0400120 - python --version
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400121
Yi Huang71929b32014-01-29 21:47:09 -0700122script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -0700123 - ./.jenkins