.travis.yml 2.51 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
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:
13
14
15
16
    - os: linux
      dist: trusty
      sudo: required
      group: deprecated-2017Q3
17
      before_install: chmod -R +x ./ci/*platformio.sh 
18
19
      install: ./ci/install-platformio.sh
      script: ./ci/build-platformio.sh      
20
21
    - os: linux
      compiler: gcc
Gennadiy Civil's avatar
Gennadiy Civil committed
22
      sudo : true
23
24
25
26
      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
27
      sudo : true
28
      install: ./ci/install-linux.sh && ./ci/log-config.sh
29
      script: ./ci/build-linux-bazel.sh
30
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
31
      group: deprecated-2017Q4
32
      compiler: gcc
33
34
      install: ./ci/install-linux.sh && ./ci/log-config.sh
      script: ./ci/build-linux-autotools.sh
Gennadiy Civil's avatar
Gennadiy Civil committed
35
      env: VERBOSE=1 CXXFLAGS=-std=c++11
36
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
37
      group: deprecated-2017Q4
38
      compiler: gcc
39
      env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
40
    - os: linux
Gennadiy Civil's avatar
Gennadiy Civil committed
41
      group: deprecated-2017Q4
42
43
      compiler: clang
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
44
45
    - os: linux
      compiler: clang
Gennadiy Civil's avatar
Gennadiy Civil committed
46
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11 NO_EXCEPTION=ON NO_RTTI=ON COMPILER_IS_GNUCXX=ON
47
48
49
50
51
    - 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
52
      if: type != pull_request
53
54
55

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

Billy Donahue's avatar
Billy Donahue committed
77
78
notifications:
  email: false