.travis.yml 2.31 KB
Newer Older
Billy Donahue's avatar
Billy Donahue committed
1
# Build matrix / environment variable are explained on:
2
# https://docs.travis-ci.com/user/customizing-the-build/
Billy Donahue's avatar
Billy Donahue committed
3
4
5
# This file can be validated on:
# http://lint.travis-ci.org/

6
7
8
9
10
11
12
13
14
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
Gennadiy Civil's avatar
Gennadiy Civil committed
15
      sudo : true
16
17
18
19
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-bazel.sh
    - os: linux
      compiler: clang
Gennadiy Civil's avatar
Gennadiy Civil committed
20
      sudo : true
21
      install: ./ci/install-linux.sh && ./ci/log-config.sh
22
      script: ./ci/build-linux-bazel.sh
23
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
24
      group: deprecated-2017Q4
25
      compiler: gcc
26
27
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-autotools.sh
Gennadiy Civil's avatar
Gennadiy Civil committed
28
      env: VERBOSE=1 CXXFLAGS=-std=c++11
29
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
30
      group: deprecated-2017Q4
31
      compiler: gcc
32
      env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
33
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
34
      group: deprecated-2017Q4
35
36
      compiler: clang
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
37
38
    - os: linux
      compiler: clang
Gennadiy Civil's avatar
Gennadiy Civil committed
39
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11 NO_EXCEPTION=ON NO_RTTI=ON COMPILER_IS_GNUCXX=ON -ftemplate-depth=512
40
41
42
43
44
    - 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
45
      if: type != pull_request
46
47
48

# 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.
Billy Donahue's avatar
Billy Donahue committed
49
install:
50
51
52
53
54
55
56
  - ./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.
Billy Donahue's avatar
Billy Donahue committed
57
58
addons:
  apt:
Anton Klautsan's avatar
Anton Klautsan committed
59
60
61
62
    # 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
Billy Donahue's avatar
Billy Donahue committed
63
64
    sources:
    - ubuntu-toolchain-r-test
65
    - llvm-toolchain-precise-3.9
Billy Donahue's avatar
Billy Donahue committed
66
67
    packages:
    - g++-4.9
68
    - clang-3.9
69

Billy Donahue's avatar
Billy Donahue committed
70
71
notifications:
  email: false