2015-08-31 06:19:39 +00:00
|
|
|
# Build matrix / environment variable are explained on:
|
2018-07-25 17:19:26 +00:00
|
|
|
# https://docs.travis-ci.com/user/customizing-the-build/
|
2015-08-31 06:19:39 +00:00
|
|
|
# This file can be validated on:
|
|
|
|
# http://lint.travis-ci.org/
|
|
|
|
|
2017-12-09 01:59:07 +00:00
|
|
|
sudo: false
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
# Define the matrix explicitly, manually expanding the combinations of (os, compiler, env).
|
|
|
|
# It is more tedious, but grants us far more flexibility.
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2018-01-11 21:57:44 +00:00
|
|
|
sudo : true
|
2017-12-09 01:59:07 +00:00
|
|
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
|
|
|
script: ./ci/build-linux-bazel.sh
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2018-01-11 21:57:44 +00:00
|
|
|
sudo : true
|
2017-12-09 01:59:07 +00:00
|
|
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
|
|
|
script: ./ci/build-linux-bazel.sh
|
|
|
|
- os: linux
|
2018-01-10 15:20:09 +00:00
|
|
|
group: deprecated-2017Q4
|
2017-12-09 01:59:07 +00:00
|
|
|
compiler: gcc
|
2017-12-24 15:34:56 +00:00
|
|
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
|
|
|
script: ./ci/build-linux-autotools.sh
|
2017-12-09 01:59:07 +00:00
|
|
|
- os: linux
|
2018-01-10 15:20:09 +00:00
|
|
|
group: deprecated-2017Q4
|
2017-12-09 01:59:07 +00:00
|
|
|
compiler: gcc
|
2017-12-24 15:34:56 +00:00
|
|
|
env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
|
2017-12-09 01:59:07 +00:00
|
|
|
- os: linux
|
2018-01-10 15:20:09 +00:00
|
|
|
group: deprecated-2017Q4
|
2017-12-09 01:59:07 +00:00
|
|
|
compiler: clang
|
|
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
|
2018-04-27 18:27:06 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11 NO_EXCEPTION=ON NO_RTTI=ON COMPILER_IS_GNUCXX=ON
|
2017-12-09 01:59:07 +00:00
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
|
|
|
|
- os: osx
|
|
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
|
2018-01-05 19:58:48 +00:00
|
|
|
if: type != pull_request
|
2017-12-09 01:59:07 +00:00
|
|
|
|
|
|
|
# These are the install and build (script) phases for the most common entries in the matrix. They could be included
|
|
|
|
# in each entry in the matrix, but that is just repetitive.
|
2015-08-31 06:19:39 +00:00
|
|
|
install:
|
2017-12-09 01:59:07 +00:00
|
|
|
- ./ci/install-${TRAVIS_OS_NAME}.sh
|
|
|
|
- . ./ci/env-${TRAVIS_OS_NAME}.sh
|
|
|
|
- ./ci/log-config.sh
|
|
|
|
|
|
|
|
script: ./ci/travis.sh
|
|
|
|
|
|
|
|
# For sudo=false builds this section installs the necessary dependencies.
|
2015-08-31 06:19:39 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2015-10-18 01:34:12 +00:00
|
|
|
# List of whitelisted in travis packages for ubuntu-precise can be found here:
|
|
|
|
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
|
|
|
|
# List of whitelisted in travis apt-sources:
|
|
|
|
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
|
2015-08-31 06:19:39 +00:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2018-08-30 02:02:08 +00:00
|
|
|
- llvm-toolchain-precise-3.9
|
2015-08-31 06:19:39 +00:00
|
|
|
packages:
|
|
|
|
- g++-4.9
|
2018-08-30 02:02:08 +00:00
|
|
|
- clang-3.9
|
2017-12-09 01:59:07 +00:00
|
|
|
|
2015-08-31 06:19:39 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|