.travis.yml 1.55 KB
Newer Older
Billy Donahue's avatar
Billy Donahue committed
1
2
3
4
5
6
7
8
# 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/

install:
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
Anton Klautsan's avatar
Anton Klautsan committed
9
# /usr/bin/clang is 3.4, lets override with modern one.
10
- if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-3.7" CC="clang-3.7"; ln -sf /usr/bin/ccache /$HOME/bin/$CXX; ln -sf /usr/bin/ccache /$HOME/bin/$CC; fi
11
12
# ccache on OS X needs installation first
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install ccache; export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
13
14
# reset ccache statistics
- ccache --zero-stats
Billy Donahue's avatar
Billy Donahue committed
15
16
17
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
Anton Klautsan's avatar
Anton Klautsan committed
18
- ${CXX} -v
Billy Donahue's avatar
Billy Donahue committed
19
20
addons:
  apt:
Anton Klautsan's avatar
Anton Klautsan committed
21
22
23
24
    # 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
25
26
    sources:
    - ubuntu-toolchain-r-test
Anton Klautsan's avatar
Anton Klautsan committed
27
    - llvm-toolchain-precise-3.7
Billy Donahue's avatar
Billy Donahue committed
28
29
    packages:
    - g++-4.9
Anton Klautsan's avatar
Anton Klautsan committed
30
    - clang-3.7
Billy Donahue's avatar
Billy Donahue committed
31
32
os:
  - linux
Anton Klautsan's avatar
Anton Klautsan committed
33
  - osx
Billy Donahue's avatar
Billy Donahue committed
34
language: cpp
Herbert Thielen's avatar
Herbert Thielen committed
35
cache: ccache
36
37
38
before_cache:
  # print statistics before uploading new cache
  - ccache --show-stats
Billy Donahue's avatar
Billy Donahue committed
39
40
41
42
43
44
compiler:
  - gcc
  - clang
script: ./travis.sh
env:
  matrix:
45
    - BUILD_TYPE=Debug VERBOSE=1
46
    - BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
Billy Donahue's avatar
Billy Donahue committed
47
48
49
notifications:
  email: false
sudo: false