forked from GafferHQ/gaffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (68 loc) · 2.67 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
sudo: false
language: cpp
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- inkscape
- doxygen
- gcc-4.8
- g++-4.8
- gcc-5
- g++-5
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- python ./config/travis/installDependencies.py
- export DELIGHT_PACKAGE=3delight-12.0.113-Linux-x86_64
- curl -A Mozilla/4.0 http://www.3delight.com/downloads/free/$DELIGHT_PACKAGE.tar.xz > $DELIGHT_PACKAGE.tar.xz
- tar -xf $DELIGHT_PACKAGE.tar.xz
- export DELIGHT=`pwd`/$DELIGHT_PACKAGE/3delight/Linux-x86_64
- export LD_LIBRARY_PATH=$DELIGHT/lib:$LD_LIBRARY_PATH
- export DL_SHADERS_PATH=$DELIGHT/shaders
- export DL_DISPLAYS_PATH=$DELIGHT/displays
- export PATH=$DELIGHT/bin:$PATH
- if [ -n "$COMPILER_VERSION" ]; then export CXX="${CXX}-${COMPILER_VERSION}"; fi
script:
- scons -j 2 install CXX=$CXX CXXSTD=$CXXSTD DEBUG=$DEBUG ENV_VARS_TO_IMPORT=PATH RMAN_ROOT=$DELIGHT
# Preload libSegFault when running tests, so we get stack
# traces from any crashes.
- export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- source ./config/travis/runGafferTest GafferTest
- source ./config/travis/runGafferTest GafferUITest
- source ./config/travis/runGafferTest GafferDispatchTest
- source ./config/travis/runGafferTest GafferDispatchUITest
- source ./config/travis/runGafferTest GafferCortexTest
- source ./config/travis/runGafferTest GafferCortexUITest
- source ./config/travis/runGafferTest GafferImageTest
- source ./config/travis/runGafferTest GafferImageUITest
- source ./config/travis/runGafferTest GafferSceneTest
- source ./config/travis/runGafferTest GafferSceneUITest
- source ./config/travis/runGafferTest GafferOSLTest
- source ./config/travis/runGafferTest GafferOSLUITest
- source ./config/travis/runGafferTest GafferRenderManTest
- source ./config/travis/runGafferTest GafferRenderManUITest
- source ./config/travis/runGafferTest GafferAppleseedTest
- source ./config/travis/runGafferTest GafferAppleseedUITest
- ./config/travis/printTestResults
compiler:
- gcc
- clang
env:
- COMPILER_VERSION= CXXSTD=c++98 DEBUG=0
- COMPILER_VERSION= CXXSTD=c++98 DEBUG=1
- COMPILER_VERSION=4.8 CXXSTD=c++98 DEBUG=0
- COMPILER_VERSION=4.8 CXXSTD=c++11 DEBUG=0
- COMPILER_VERSION=5 CXXSTD=c++11 DEBUG=0
matrix:
exclude:
- compiler: clang
env: COMPILER_VERSION=4.8 CXXSTD=c++98 DEBUG=0
- compiler: clang
env: COMPILER_VERSION=4.8 CXXSTD=c++11 DEBUG=0
- compiler: clang
env: COMPILER_VERSION=5 CXXSTD=c++11 DEBUG=0