forked from tpaviot/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
172 lines (162 loc) · 4.72 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
language: cpp
compiler:
- gcc
- clang
cache:
apt: true
env:
- RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- tcl8.5-dev
- tk8.5-dev
- libgl2ps-dev
- libfreeimage-dev
- libtbb-dev
- tclthread
- libgl1-mesa-dri
- xsltproc
- g++-5
- g++-6
- g++-7
matrix:
include:
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
dist: trusty
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
dist: trusty
- os: linux
compiler: clang
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
dist: trusty
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF MATRIX_EVAL=""
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL=""
- os: linux
compiler: gcc
env: OCE_MULTITHREAD_LIBRARY=OPENMP OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL=""
- os: linux
compiler: gcc
env: OCE_MULTITHREAD_LIBRARY=TBB OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL=""
- os: osx
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode8.3
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.2
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.3beta
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
exclude:
- env: RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
allow_failures:
- os: osx
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode8.3
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.2
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.3beta
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
before_install:
# osx
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install freetype;
brew install freeimage;
brew install gl2ps;
fi
# linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
eval "${MATRIX_EVAL}";
fi
before_script:
# Initialize xvfb server
# Depth is necessary, otherwise DRAWEXE exits with this message:
# Tcl Exception: ** Exception ** 0x7fee03adb307 : Aspect_WindowDefinitionError: Xw_Window, couldn't find compatible Visual (RGBA, double-buffered)
# Remove OCCT tests which are going to be skipped
# because of missing data files. We must use -name
# to filter out 'begin' or 'end' files.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
"/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x16";
find tests -type f -name '[A-Z][0-9]' -o -name 'Z[A-Z][0-9]' -o -name 'bu[gc]*' | xargs grep -l locate_data_file /dev/null | xargs rm -f;
rm -rf tests/chamfer tests/de tests/mesh tests/perf/*_mesh_*;
fi
- mkdir cmake-build
- cd cmake-build
script: sh ../.travis.build.sh
after_script:
- test ! -r occt/summary.xml || xsltproc --param duration 1 ../.travis.xsl occt/summary.xml
- if [ -r occt/summary.xml ]; then
xsltproc ../.travis.xsl occt/summary.xml > occt/summary.failed;
if [ -s occt/summary.failed ]; then
echo "FAILED TESTS:";
cat occt/summary.failed;
for file in $(cat occt/summary.failed); do head -n -1 occt/$file.{tcl,log}; done;
fi;
fi
branches:
only:
- master
- /^review/