blob: 5e45e4e5bd40e5f6c0781fa57de4e0240b4ec6ee [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:
86 sources: ["llvm-toolchain-trusty", "ubuntu-toolchain-r-test"]
87 packages: clang-6.0
Davide Pesavento9ac95d32017-07-01 01:51:37 -040088
89 # macOS/clang
90 # https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070091 - os: osx
Davide Pesavento9ac95d32017-07-01 01:51:37 -040092 osx_image: xcode7.3
Davide Pesavento167040a2018-01-10 02:41:50 -050093 env: OSX_VERSION=10.11
Davide Pesavento9ac95d32017-07-01 01:51:37 -040094 - os: osx
95 osx_image: xcode8.3
Davide Pesavento167040a2018-01-10 02:41:50 -050096 env: OSX_VERSION=10.12
Davide Pesavento6daf2a32017-10-17 16:28:18 -040097 - os: osx
Davide Pesavento167040a2018-01-10 02:41:50 -050098 osx_image: xcode9.2
99 env: OSX_VERSION=10.12
100
101 allow_failures:
102 - env: COMPILER=clang++-6.0
103
104 fast_finish: true
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400105
106before_script:
Davide Pesavento167040a2018-01-10 02:41:50 -0500107 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-14.04"; fi
108 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
109 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400110 - ${CXX:-c++} --version
Davide Pesavento8ca138d2017-08-10 21:36:30 -0400111 - python --version
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400112
Yi Huang71929b32014-01-29 21:47:09 -0700113script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -0700114 - ./.jenkins