blob: c310d6b4de271d4a22ed7a0c369f376daec6a999 [file] [log] [blame]
Davide Pesavento9a659d02018-01-10 02:55:43 -05001language: cpp
2dist: trusty
Davide Pesavento4a1edc62016-05-03 18:03:19 +02003sudo: required
Eric Newberry9737aa82016-12-27 23:03:49 -07004env:
5 global:
6 - JOB_NAME=limited-build
Davide Pesavento44660cf2017-08-16 00:44:23 -04007 - WAF_JOBS=2
Davide Pesaventof085ed12017-06-30 14:59:52 -04008
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -07009matrix:
Davide Pesavento4a1edc62016-05-03 18:03:19 +020010 include:
Davide Pesaventof085ed12017-06-30 14:59:52 -040011 # Linux/gcc
Davide Pesavento9a659d02018-01-10 02:55:43 -050012 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -070013 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050014 env: COMPILER=g++-4.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040015 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050016 env: COMPILER=g++-4.9
Davide Pesaventof085ed12017-06-30 14:59:52 -040017 addons:
18 apt:
19 sources: ubuntu-toolchain-r-test
20 packages: g++-4.9
Davide Pesaventof085ed12017-06-30 14:59:52 -040021 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050022 env: COMPILER=g++-5
Davide Pesaventof085ed12017-06-30 14:59:52 -040023 addons:
24 apt:
25 sources: ubuntu-toolchain-r-test
26 packages: g++-5
Davide Pesaventof085ed12017-06-30 14:59:52 -040027 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050028 env: COMPILER=g++-6
Davide Pesaventof085ed12017-06-30 14:59:52 -040029 addons:
30 apt:
31 sources: ubuntu-toolchain-r-test
32 packages: g++-6
Davide Pesaventof085ed12017-06-30 14:59:52 -040033 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050034 env: COMPILER=g++-7
Davide Pesaventof085ed12017-06-30 14:59:52 -040035 addons:
36 apt:
37 sources: ubuntu-toolchain-r-test
38 packages: g++-7
Davide Pesavento79d12c62018-04-30 19:28:46 -040039 - os: linux
40 env: COMPILER=g++-8
41 addons:
42 apt:
43 sources: ubuntu-toolchain-r-test
44 packages: g++-8
Davide Pesaventof085ed12017-06-30 14:59:52 -040045
46 # Linux/clang
Davide Pesavento9a659d02018-01-10 02:55:43 -050047 # https://apt.llvm.org/
Davide Pesaventof085ed12017-06-30 14:59:52 -040048 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050049 env: COMPILER=clang++-3.5
Davide Pesaventof085ed12017-06-30 14:59:52 -040050 addons:
51 apt:
52 packages: clang-3.5
Davide Pesaventof085ed12017-06-30 14:59:52 -040053 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050054 env: COMPILER=clang++-3.6
Davide Pesaventof085ed12017-06-30 14:59:52 -040055 addons:
56 apt:
57 packages: clang-3.6
Davide Pesaventof085ed12017-06-30 14:59:52 -040058 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050059 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesaventof085ed12017-06-30 14:59:52 -040060 addons:
61 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050062 sources: ["llvm-toolchain-precise-3.7", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040063 packages: clang-3.7
Davide Pesavento4a1edc62016-05-03 18:03:19 +020064 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050065 env: COMPILER=clang++-3.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040066 addons:
67 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050068 sources: ["llvm-toolchain-precise-3.8", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040069 packages: clang-3.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040070 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050071 env: COMPILER=clang++-3.9 DISABLE_ASAN=yes
Davide Pesaventof085ed12017-06-30 14:59:52 -040072 addons:
73 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050074 sources: ["llvm-toolchain-trusty-3.9", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040075 packages: clang-3.9
Davide Pesaventof085ed12017-06-30 14:59:52 -040076 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050077 env: COMPILER=clang++-4.0
Davide Pesaventof085ed12017-06-30 14:59:52 -040078 addons:
79 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050080 sources: ["llvm-toolchain-trusty-4.0", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040081 packages: clang-4.0
Davide Pesaventob5e06e62017-09-15 22:30:01 -040082 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050083 env: COMPILER=clang++-5.0
Davide Pesaventob5e06e62017-09-15 22:30:01 -040084 addons:
85 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050086 sources: ["llvm-toolchain-trusty-5.0", "ubuntu-toolchain-r-test"]
Davide Pesaventob5e06e62017-09-15 22:30:01 -040087 packages: clang-5.0
Davide Pesavento9a659d02018-01-10 02:55:43 -050088 - os: linux
89 env: COMPILER=clang++-6.0
90 addons:
91 apt:
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040092 sources: ["llvm-toolchain-trusty-6.0", "ubuntu-toolchain-r-test"]
Davide Pesavento9a659d02018-01-10 02:55:43 -050093 packages: clang-6.0
Davide Pesaventoe7d95a72018-03-11 20:54:08 -040094 - os: linux
95 env: COMPILER=clang++-7
96 addons:
97 apt:
98 sources: ["llvm-toolchain-trusty", "ubuntu-toolchain-r-test"]
99 packages: clang-7
Davide Pesaventof085ed12017-06-30 14:59:52 -0400100
101 # macOS/clang
Davide Pesaventoe7d95a72018-03-11 20:54:08 -0400102 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -0700103 - os: osx
Davide Pesaventof085ed12017-06-30 14:59:52 -0400104 osx_image: xcode7.3
Davide Pesavento9a659d02018-01-10 02:55:43 -0500105 env: OSX_VERSION=10.11
Davide Pesaventof085ed12017-06-30 14:59:52 -0400106 - os: osx
107 osx_image: xcode8.3
Davide Pesavento9a659d02018-01-10 02:55:43 -0500108 env: OSX_VERSION=10.12
Davide Pesavento19280242017-10-19 01:30:33 -0400109 - os: osx
Davide Pesavento79d12c62018-04-30 19:28:46 -0400110 osx_image: xcode9.3
Davide Pesaventoe7d95a72018-03-11 20:54:08 -0400111 env: OSX_VERSION=10.13
Davide Pesavento9a659d02018-01-10 02:55:43 -0500112
113 allow_failures:
Davide Pesaventoe7d95a72018-03-11 20:54:08 -0400114 - env: COMPILER=clang++-7
Davide Pesavento9a659d02018-01-10 02:55:43 -0500115
116 fast_finish: true
Davide Pesaventof085ed12017-06-30 14:59:52 -0400117
118before_script:
Davide Pesavento9a659d02018-01-10 02:55:43 -0500119 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-14.04"; fi
120 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
121 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesaventof085ed12017-06-30 14:59:52 -0400122 - ${CXX:-c++} --version
Davide Pesavento5485ca92017-08-10 21:47:42 -0400123 - python --version
Davide Pesaventof085ed12017-06-30 14:59:52 -0400124
Joao Pereiraef326da2015-05-27 18:27:40 -0400125script:
Joao Pereiraef326da2015-05-27 18:27:40 -0400126 - ./.jenkins