.travis.yml 1.38 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
10
# /usr/bin/clang is 3.4, lets override with modern one.
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
Billy Donahue's avatar
Billy Donahue committed
11
12
13
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
Anton Klautsan's avatar
Anton Klautsan committed
14
- ${CXX} -v
Billy Donahue's avatar
Billy Donahue committed
15
16
17
18
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
Anton Klautsan's avatar
Anton Klautsan committed
19
    - llvm-toolchain-precise-3.7
Billy Donahue's avatar
Billy Donahue committed
20
21
22
    packages:
    - gcc-4.9
    - g++-4.9
Anton Klautsan's avatar
Anton Klautsan committed
23
    - clang-3.7
Billy Donahue's avatar
Billy Donahue committed
24
25
26
    - valgrind
os:
  - linux
Anton Klautsan's avatar
Anton Klautsan committed
27
  - osx
Billy Donahue's avatar
Billy Donahue committed
28
29
30
31
32
33
34
language: cpp
compiler:
  - gcc
  - clang
script: ./travis.sh
env:
  matrix:
Anton Klautsan's avatar
Anton Klautsan committed
35
36
    - GTEST_TARGET=googletest SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug   VERBOSE_MAKE=true VERBOSE
    - GTEST_TARGET=googlemock SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug   VERBOSE_MAKE=true VERBOSE
deki's avatar
deki committed
37
    - GTEST_TARGET=googlemock SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug CXX_FLAGS=-std=c++11  VERBOSE_MAKE=true VERBOSE
Billy Donahue's avatar
Billy Donahue committed
38
39
#    - GTEST_TARGET=googletest SHARED_LIB=ON  STATIC_LIB=ON CMAKE_PKG=ON  BUILD_TYPE=release VERBOSE_MAKE=false
#    - GTEST_TARGET=googlemock SHARED_LIB=ON  STATIC_LIB=ON CMAKE_PKG=ON  BUILD_TYPE=release VERBOSE_MAKE=false
Billy Donahue's avatar
Billy Donahue committed
40
41
42
notifications:
  email: false
sudo: false