forked from ImageEngine/cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
sudo: false
language: cpp
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- gcc-4.8
- g++-4.8
- libboost1.55-all-dev
- libopenexr-dev
- libtbb-dev
- libfreetype6-dev
install:
- if [ -n "$COMPILER_VERSION" ]; then export CXX="${CXX}-${COMPILER_VERSION}"; fi
script:
# Preload libSegFault when running tests, so we get stack
# traces from any crashes.
- export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- scons -j 2 testCore testCorePython CXX=$CXX CXXSTD=$CXXSTD DEBUG=$DEBUG ENV_VARS_TO_IMPORT="PATH TRAVIS LD_PRELOAD" RMAN_ROOT=$DELIGHT BOOST_LIB_SUFFIX=""
# Default values for environment variables we use to
# control the build.
env:
- COMPILER_VERSION= CXXSTD=c++98 DEBUG=0
compiler:
## \todo Enable clang here too. We can't with the default Ubuntu boost
# install though, because it is broken for Clang :
#
# https://svn.boost.org/trac/boost/ticket/6156
- gcc
matrix:
# Explicit list of all permutations of environment
# and compiler we want to test. These are on top
# of the defaults provided above.
include:
- os: linux
compiler: gcc
env: COMPILER_VERSION= CXXSTD=c++98 DEBUG=1
- os: linux
compiler: gcc
env: COMPILER_VERSION=4.8 CXXSTD=c++98 DEBUG=0
- os: linux
compiler: gcc
env: COMPILER_VERSION=4.8 CXXSTD=c++11 DEBUG=0