.travis.yml 2.37 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
Gennadiy Civil's avatar
 
Gennadiy Civil committed
21
      env: TEST_CLANG_FORMAT="yes"
22
      install: ./ci/install-linux.sh && ./ci/log-config.sh
Gennadiy Civil's avatar
 
Gennadiy Civil committed
23
      script: ./ci/test_format.sh && ./ci/build-linux-bazel.sh
24
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
25
      group: deprecated-2017Q4
26
      compiler: gcc
27
28
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-autotools.sh
Gennadiy Civil's avatar
Gennadiy Civil committed
29
      env: VERBOSE=1 CXX_FLAGS=-std=c++11
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
      compiler: clang
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
38
39
40
    - 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
41
42
43
44
45
    - 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
46
      if: type != pull_request
47
48
49

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

Billy Donahue's avatar
Billy Donahue committed
72
73
notifications:
  email: false