.travis.yml 1.53 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
Billy Donahue's avatar
Billy Donahue committed
13
14
15
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
Anton Klautsan's avatar
Anton Klautsan committed
16
- ${CXX} -v
Billy Donahue's avatar
Billy Donahue committed
17
18
addons:
  apt:
Anton Klautsan's avatar
Anton Klautsan committed
19
20
21
22
    # 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
23
24
    sources:
    - ubuntu-toolchain-r-test
Anton Klautsan's avatar
Anton Klautsan committed
25
    - llvm-toolchain-precise-3.7
Billy Donahue's avatar
Billy Donahue committed
26
27
28
    packages:
    - gcc-4.9
    - g++-4.9
Anton Klautsan's avatar
Anton Klautsan committed
29
    - clang-3.7
Billy Donahue's avatar
Billy Donahue committed
30
31
32
    - valgrind
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
Billy Donahue's avatar
Billy Donahue committed
36
37
38
39
40
41
compiler:
  - gcc
  - clang
script: ./travis.sh
env:
  matrix:
Herbert Thielen's avatar
Herbert Thielen committed
42
43
    - SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=Debug VERBOSE=1
    - SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
Billy Donahue's avatar
Billy Donahue committed
44
45
46
notifications:
  email: false
sudo: false