blob: 5e45e4e5bd40e5f6c0781fa57de4e0240b4ec6ee [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 Pesaventof085ed12017-06-30 14:59:52 -040039
40 # Linux/clang
Davide Pesavento9a659d02018-01-10 02:55:43 -050041 # https://apt.llvm.org/
Davide Pesaventof085ed12017-06-30 14:59:52 -040042 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050043 env: COMPILER=clang++-3.5
Davide Pesaventof085ed12017-06-30 14:59:52 -040044 addons:
45 apt:
46 packages: clang-3.5
Davide Pesaventof085ed12017-06-30 14:59:52 -040047 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050048 env: COMPILER=clang++-3.6
Davide Pesaventof085ed12017-06-30 14:59:52 -040049 addons:
50 apt:
51 packages: clang-3.6
Davide Pesaventof085ed12017-06-30 14:59:52 -040052 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050053 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesaventof085ed12017-06-30 14:59:52 -040054 addons:
55 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050056 sources: ["llvm-toolchain-precise-3.7", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040057 packages: clang-3.7
Davide Pesavento4a1edc62016-05-03 18:03:19 +020058 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050059 env: COMPILER=clang++-3.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040060 addons:
61 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050062 sources: ["llvm-toolchain-precise-3.8", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040063 packages: clang-3.8
Davide Pesaventof085ed12017-06-30 14:59:52 -040064 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050065 env: COMPILER=clang++-3.9 DISABLE_ASAN=yes
Davide Pesaventof085ed12017-06-30 14:59:52 -040066 addons:
67 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050068 sources: ["llvm-toolchain-trusty-3.9", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040069 packages: clang-3.9
Davide Pesaventof085ed12017-06-30 14:59:52 -040070 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050071 env: COMPILER=clang++-4.0
Davide Pesaventof085ed12017-06-30 14:59:52 -040072 addons:
73 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050074 sources: ["llvm-toolchain-trusty-4.0", "ubuntu-toolchain-r-test"]
Davide Pesaventof085ed12017-06-30 14:59:52 -040075 packages: clang-4.0
Davide Pesaventob5e06e62017-09-15 22:30:01 -040076 - os: linux
Davide Pesavento9a659d02018-01-10 02:55:43 -050077 env: COMPILER=clang++-5.0
Davide Pesaventob5e06e62017-09-15 22:30:01 -040078 addons:
79 apt:
Davide Pesavento9a659d02018-01-10 02:55:43 -050080 sources: ["llvm-toolchain-trusty-5.0", "ubuntu-toolchain-r-test"]
Davide Pesaventob5e06e62017-09-15 22:30:01 -040081 packages: clang-5.0
Davide Pesavento9a659d02018-01-10 02:55:43 -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 Pesaventof085ed12017-06-30 14:59:52 -040088
89 # macOS/clang
90 # https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -070091 - os: osx
Davide Pesaventof085ed12017-06-30 14:59:52 -040092 osx_image: xcode7.3
Davide Pesavento9a659d02018-01-10 02:55:43 -050093 env: OSX_VERSION=10.11
Davide Pesaventof085ed12017-06-30 14:59:52 -040094 - os: osx
95 osx_image: xcode8.3
Davide Pesavento9a659d02018-01-10 02:55:43 -050096 env: OSX_VERSION=10.12
Davide Pesavento19280242017-10-19 01:30:33 -040097 - os: osx
Davide Pesavento9a659d02018-01-10 02:55:43 -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 Pesaventof085ed12017-06-30 14:59:52 -0400105
106before_script:
Davide Pesavento9a659d02018-01-10 02:55:43 -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 Pesaventof085ed12017-06-30 14:59:52 -0400110 - ${CXX:-c++} --version
Davide Pesavento5485ca92017-08-10 21:47:42 -0400111 - python --version
Davide Pesaventof085ed12017-06-30 14:59:52 -0400112
Joao Pereiraef326da2015-05-27 18:27:40 -0400113script:
Joao Pereiraef326da2015-05-27 18:27:40 -0400114 - ./.jenkins