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

6
7
8
9
10
11
12
13
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
Gennadiy Civil's avatar
Gennadiy Civil committed
14
      group: deprecated-2017Q4
15
16
17
18
19
20
      compiler: gcc
      sudo: true
      cache:
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-bazel.sh
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
21
      group: deprecated-2017Q4
22
23
24
25
26
27
      compiler: clang
      sudo: true
      cache:
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-bazel.sh
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
28
      group: deprecated-2017Q4
29
      compiler: gcc
30
31
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-autotools.sh
32
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
33
      group: deprecated-2017Q4
34
      compiler: gcc
35
      env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
36
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
37
      group: deprecated-2017Q4
38
39
40
      compiler: clang
      env: BUILD_TYPE=Debug VERBOSE=1
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
41
      group: deprecated-2017Q4
42
43
44
45
46
      compiler: clang
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
    - os: osx
      compiler: gcc
      env: BUILD_TYPE=Debug VERBOSE=1
47
      if: type != pull_request
48
49
50
    - os: osx
      compiler: gcc
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
51
      if: type != pull_request
52
53
54
    - os: osx
      compiler: clang
      env: BUILD_TYPE=Debug VERBOSE=1
55
      if: type != pull_request
56
57
58
    - os: osx
      compiler: clang
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
59
      if: type != pull_request
60
61
62

# 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
63
install:
64
65
66
67
68
69
70
  - ./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
71
72
addons:
  apt:
Anton Klautsan's avatar
Anton Klautsan committed
73
74
75
76
    # 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
77
78
    sources:
    - ubuntu-toolchain-r-test
Anton Klautsan's avatar
Anton Klautsan committed
79
    - llvm-toolchain-precise-3.7
Billy Donahue's avatar
Billy Donahue committed
80
81
    packages:
    - g++-4.9
Anton Klautsan's avatar
Anton Klautsan committed
82
    - clang-3.7
83

Billy Donahue's avatar
Billy Donahue committed
84
85
notifications:
  email: false