forked from GafferHQ/gaffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (81 loc) · 3.02 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
sudo: false
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
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
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install scons; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install doxygen; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew cask install inkscape; fi
- python ./config/travis/installDependencies.py
- ./config/travis/installDelight.sh
- export DELIGHT=`pwd`/3delight
- 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
# Default values for environment variables we use to
# control the build.
env:
- COMPILER_VERSION= CXXSTD=c++98 DEBUG=0
matrix:
# Explicit list of additional permutations of environment
# and compiler we want to test. These are on top
# of the defaults provided by the compiler and
# env setup 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
- os: linux
compiler: gcc
env: COMPILER_VERSION=5 CXXSTD=c++11 DEBUG=0
exclude:
- os: osx
compiler: gcc