forked from tpaviot/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (65 loc) · 2.52 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
language: cpp
compiler:
- gcc
- clang
env:
- RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
matrix:
include:
- compiler: gcc
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- compiler: clang
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
- compiler: gcc
env: OCE_USE_PCH=OFF OCE_COPY_HEADERS_BUILD=OFF
- compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- compiler: gcc
env: OCE_USE_PCH=OFF OCE_COPY_HEADERS_BUILD=ON
- compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON OCE_MULTITHREAD_LIBRARY=OPENMP
- compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON OCE_MULTITHREAD_LIBRARY=TBB
exclude:
- env: RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
allow_failures:
- compiler: gcc
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- compiler: clang
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
before_install:
- sudo apt-get update -q
- sudo apt-get install tcl8.5-dev tk8.5-dev libgl2ps-dev libfreeimage-dev libtbb-dev
# Needed to run OCCT tests in parallel
- sudo apt-get install tclthread
# Is this needed to run OCCT tests?
- sudo apt-get install libgl1-mesa-dri
# Postprocess OCCT tests output
- sudo apt-get install xsltproc
before_script:
# 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.
- 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_*
- mkdir cmake-build
- cd cmake-build
# 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)
script: xvfb-run -s "-screen 0 1024x768x16" ../.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/