forked from ImageEngine/cortex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
108 lines (98 loc) · 3.48 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
language: cpp
os:
- linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- gcc-4.8
- g++-4.8
- g++-6
cache:
directories:
- sconsCache
- pyIlmBaseInstall
install:
- if [ -n "$COMPILER_VERSION" ]; then export CXX="${CXX}-${COMPILER_VERSION}"; fi
- python ./config/installDependencies.py
- export DEPENDENCIES=`pwd`/dependencies
script:
# Preload libSegFault when running tests, so we get stack
# traces from any crashes.
- export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- export LD_LIBRARY_PATH=$DEPENDENCIES/lib
- scons -j 2
testCore testCorePython testScene testImage testAlembic testAppleseed
CXX=$CXX
CXXSTD=$CXXSTD
TBB_INCLUDE_PATH=$DEPENDENCIES/lib
TBB_LIB_PATH=$DEPENDENCIES/lib
BOOST_INCLUDE_PATH=$DEPENDENCIES/include
BOOST_LIB_PATH=$DEPENDENCIES/lib
BOOST_LIB_SUFFIX=""
OPENEXR_INCLUDE_PATH=$DEPENDENCIES/include
OPENEXR_LIB_PATH=$DEPENDENCIES/lib
ILMBASE_INCLUDE_PATH=$DEPENDENCIES/include
ILMBASE_LIB_PATH=$DEPENDENCIES/lib
FREETYPE_INCLUDE_PATH=$DEPENDENCIES/include/freetype2
FREETYPE_LIB_PATH=$DEPENDENCIES/lib
ALEMBIC_INCLUDE_PATH=$DEPENDENCIES/include
ALEMBIC_LIB_PATH=$DEPENDENCIES/lib
HDF5_INCLUDE_PATH=$DEPENDENCIES/include
HDF5_LIB_PATH=$DEPENDENCIES/lib
APPLESEED_INCLUDE_PATH=$DEPENDENCIES/appleseed/include
APPLESEED_LIB_PATH=$DEPENDENCIES/appleseed/lib
OIIO_INCLUDE_PATH=$DEPENDENCIES/include
OSL_INCLUDE_PATH=$DEPENDENCIES/include
BLOSC_INCLUDE_PATH=$DEPENDENCIES/include
BLOSC_LIB_PATH=$DEPENDENCIES/lib
USD_INCLUDE_PATH=$DEPENDENCIES/include
USD_LIB_PATH=$DEPENDENCIES/lib
VDB_INCLUDE_PATH=$DEPENDENCIES/include
VDB_LIB_PATH=$DEPENDENCIES/lib
PYTHON=$DEPENDENCIES/bin/python
PYTHON_INCLUDE_PATH=$DEPENDENCIES/include/python2.7
PYTHON_LINK_FLAGS=-lpython2.7
LIBPATH=$DEPENDENCIES/lib
PYTHONPATH=$DEPENDENCIES/python
DEBUG=$DEBUG
ENV_VARS_TO_IMPORT="PATH TRAVIS LD_PRELOAD LD_LIBRARY_PATH"
RMAN_ROOT=$DELIGHT
BUILD_CACHEDIR=sconsCache
- cat test/IECore/results.txt
before_cache:
# This is run just before uploading the cache for next time.
# SCons caches grow without bound so we want to remove old
# files to prevent our caches becoming too big.
- python ./config/travis/limitCacheSize.py
- du -sh sconsCache
# 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=4.8 CXXSTD=c++11 BUILD_TYPE=RELEASE IECORE_STREAMINDEXEDIO_COMPRESSION="lz4 9 1 1"
- os: linux
compiler: gcc
env: COMPILER_VERSION=4.8 CXXSTD=c++11 BUILD_TYPE=RELEASE IECORE_STREAMINDEXEDIO_COMPRESSION="lz4 0 1 1"
- os: linux
compiler: gcc
env: COMPILER_VERSION=4.8 CXXSTD=c++11 BUILD_TYPE=DEBUG
- os: linux
compiler: gcc
env: COMPILER_VERSION=6 CXXSTD=c++14 BUILD_TYPE=RELEASE