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

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

Billy Donahue's avatar
Billy Donahue committed
82
83
notifications:
  email: false