-
Notifications
You must be signed in to change notification settings - Fork 64
/
.travis.yml
156 lines (138 loc) · 3.9 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
language: cpp
# Use container-based infrastructure
sudo: false
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "NvoMZI1lDLmdoKMgAJnNp3RzdRMYGfWL4buwPdIRyjJ522AIceVrT59x0//JB2bdbrABibo/o5TPP1dUGBJlVp9N250R0pjKz8zlehTL++6Y5z0zGWF9WRXOzrvTOCDpUAjJ24zwIREFy02qHmhcEbAy5+IE8aw9s3eZxsngL54="
- DEPENDENCIES_INSTALL=${TRAVIS_BUILD_DIR}/install-dependencies
- TUTTLEOFX_BUILD=${TRAVIS_BUILD_DIR}/build-tuttle
- TUTTLEOFX_INSTALL=${TRAVIS_BUILD_DIR}/install-tuttle
- TUTTLEOFX_DEPLOY=tuttle-${_system_name}-${_system_version}-${_system_arch}
- TUTTLEOFX_DEV=${TRAVIS_BUILD_DIR}
- CI_NODE_TOTAL=2
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.2
matrix:
allow_failures:
# we exceed the time limit
- os: osx
fast_finish: true
# This results in a 2×2x2 build matrix.
# Where the variables are: os / compiler / python version
cache:
# Enable compiler cache
ccache: true
# Caching Ubuntu packages
apt: true
# Caching other directories
directories:
- ${DEPENDENCIES_INSTALL}
addons:
apt:
sources: ['boost-latest', 'kalakris-cmake', 'kubuntu-backports', 'pythonxy-devel']
packages:
- cmake
- swig
- libboost1.55-all-dev
- python-dev
- python-imaging
- python-numpy
- python-nose
- python3-dev
- python3-setuptools
- python3-nose
# - python-clint # not available in https://github.com/travis-ci/apt-package-whitelist
# - python-argcomplete # not available in https://github.com/travis-ci/apt-package-whitelist
- libfreetype6-dev
- libbz2-dev
- libltdl-dev
- libpng-dev
- libjpeg-dev
# - libraw-dev
- libglew-dev
- libtiff4-dev
- libilmbase-dev
- libopenexr-dev
# - libopenimageio-dev
- libglew-dev
- libgraphviz-dev
- graphviz-dev
- libopenjpeg-dev
- libturbojpeg
- libxmu-dev
- libmp3lame-dev
- liblzma-dev
- libxt-dev
- libmagickcore-dev
- liblcms2-dev
- libyaml-dev
- libopenctl0.8
- libcaca-dev
- libglui-dev
- libtinyxml-dev
- yasm
- libx264-dev
- libxvidcore-dev
coverity_scan:
project:
name: "tuttleofx/TuttleOFX"
description: "TuttleOFX Build submitted via Travis CI"
notification_email: "[email protected]"
build_command: "tools/travis/build.sh"
branch_pattern: coverity_scan
before_install:
- env | sort
- date -u
- uname -a
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
lsb_release -a;
ccache -s;
elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
sw_vers -productVersion;
fi
install:
- tools/travis/coverity_env.sh
- if [[ ${COVERITY_BUILD_DISABLED} == 1 ]]; then
exit 0;
fi
- tools/travis/install_dependencies.sh
script:
- if [[ ${COVERITY_BUILD_DISABLED} == 1 ]]; then
exit 0;
fi
- tools/travis/build.sh
# launch tests
- if [ ${CC} = "gcc" ]; then tools/travis/launch_tests.sh; fi
after_failure:
- cat ${TUTTLEOFX_BUILD}/CMakeFiles/CMakeOutput.log
# Before uploading the new cache archive
before_cache:
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
ccache -s;
fi
before_deploy:
# copy external dependencies of boost-regex
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then cp /usr/lib/{libicuuc.so.48,libicui18n.so.48,libicudata.so.48} ${TUTTLEOFX_INSTALL}/lib; fi
# copy external dependency of libavformat
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then cp /lib/x86_64-linux-gnu/{libbz2.so.1,libbz2.so.1.0,libbz2.so.1.0.4} ${TUTTLEOFX_INSTALL}/lib; fi
# prepare deployment
- tools/travis/deploy.sh
deploy:
provider: releases
api_key:
secure: ${GITHUB_RELEASE_API_KEY}
file: ${TUTTLEOFX_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz
skip_cleanup: true
on:
tags: true
all_branches: true
condition: ${CC} = "gcc"