blob: acc10df5437e30608b59c894679564d5c3d0caff [file] [log] [blame]
Davide Pesavento118a2942018-01-21 22:34:24 -05001language: cpp
Davide Pesaventobccde322018-08-18 14:10:25 -04002dist: xenial
Zhiyi Zhang8617a792017-01-17 16:45:56 -08003sudo: required
Zhiyi Zhang8617a792017-01-17 16:45:56 -08004env:
5 global:
Zhiyi Zhang8617a792017-01-17 16:45:56 -08006 - BOOST_TEST_COLOR_OUTPUT=true
Davide Pesavento118a2942018-01-21 22:34:24 -05007 - JOB_NAME=limited-build
8 - WAF_JOBS=2
9
Zhiyi Zhang8617a792017-01-17 16:45:56 -080010matrix:
11 include:
Davide Pesavento118a2942018-01-21 22:34:24 -050012 # Linux/gcc
13 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Zhiyi Zhang8617a792017-01-17 16:45:56 -080014 - os: linux
Davide Pesavento118a2942018-01-21 22:34:24 -050015 env: COMPILER=g++-5
Davide Pesavento118a2942018-01-21 22:34:24 -050016 - os: linux
17 env: COMPILER=g++-6
Davide Pesavento118a2942018-01-21 22:34:24 -050018 - os: linux
19 env: COMPILER=g++-7
Davide Pesaventobccde322018-08-18 14:10:25 -040020 - os: linux
21 env: COMPILER=g++-8
Davide Pesavento118a2942018-01-21 22:34:24 -050022
23 # Linux/clang
24 # https://apt.llvm.org/
25 - os: linux
Davide Pesavento118a2942018-01-21 22:34:24 -050026 env: COMPILER=clang++-3.6
Davide Pesavento118a2942018-01-21 22:34:24 -050027 - os: linux
28 env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
Davide Pesavento118a2942018-01-21 22:34:24 -050029 - os: linux
30 env: COMPILER=clang++-3.8
Davide Pesavento118a2942018-01-21 22:34:24 -050031 - os: linux
Davide Pesaventobccde322018-08-18 14:10:25 -040032 env: COMPILER=clang++-3.9
Davide Pesavento118a2942018-01-21 22:34:24 -050033 - os: linux
34 env: COMPILER=clang++-4.0
Davide Pesavento118a2942018-01-21 22:34:24 -050035 - os: linux
36 env: COMPILER=clang++-5.0
Davide Pesaventobccde322018-08-18 14:10:25 -040037 - os: linux
38 env: COMPILER=clang++-6.0
39 - os: linux
40 env: COMPILER=clang++-7
Davide Pesavento118a2942018-01-21 22:34:24 -050041
42 # macOS/clang
Davide Pesaventobccde322018-08-18 14:10:25 -040043 # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
Zhiyi Zhang8617a792017-01-17 16:45:56 -080044 - os: osx
Davide Pesavento118a2942018-01-21 22:34:24 -050045 osx_image: xcode7.3
46 env: OSX_VERSION=10.11
47 - os: osx
Davide Pesaventobccde322018-08-18 14:10:25 -040048 osx_image: xcode8
49 env: OSX_VERSION=10.11
50 - os: osx
Davide Pesavento118a2942018-01-21 22:34:24 -050051 osx_image: xcode8.3
52 env: OSX_VERSION=10.12
53 - os: osx
54 osx_image: xcode9.2
55 env: OSX_VERSION=10.12
Davide Pesaventobccde322018-08-18 14:10:25 -040056 - os: osx
57 osx_image: xcode9.4
58 env: OSX_VERSION=10.13
59
60 allow_failures:
61 - env: COMPILER=clang++-3.6
62 - env: COMPILER=clang++-3.7 DISABLE_ASAN=yes
63
64 fast_finish: true
65
66install: |
67 case ${COMPILER} in
68 g++-[6789])
69 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
70 travis_retry sudo apt-get -qq update
71 travis_retry sudo apt-get -qy install "${COMPILER}"
72 ;;
73 clang++-*)
74 CLANG_VERSION=${COMPILER/clang++}
75 if [[ ${CLANG_VERSION} != "-3."* ]]; then
76 wget -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
77 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-7} main"
78 fi
79 travis_retry sudo apt-get -qq update
80 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
81 ;;
82 esac
Davide Pesavento118a2942018-01-21 22:34:24 -050083
84before_script:
Davide Pesaventobccde322018-08-18 14:10:25 -040085 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
Davide Pesavento118a2942018-01-21 22:34:24 -050086 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
87 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
88 - ${CXX:-c++} --version
89 - python --version
90
Zhiyi Zhang8617a792017-01-17 16:45:56 -080091script:
92 - ./.jenkins