forked from tpaviot/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (77 loc) · 2.74 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
language: cpp
compiler:
- gcc
- clang
env:
- RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
matrix:
include:
- os: linux
compiler: gcc
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: linux
compiler: clang
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON OCE_MULTITHREAD_LIBRARY=OPENMP
- os: linux
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:
- os: osx
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
sudo apt-get update -q;
sudo apt-get install tcl8.5-dev tk8.5-dev libgl2ps-dev libfreeimage-dev libtbb-dev;
sudo apt-get install tclthread;
sudo apt-get install libgl1-mesa-dri;
sudo apt-get install xsltproc;
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/