forked from tpaviot/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.build.sh
executable file
·50 lines (43 loc) · 1.32 KB
/
.travis.build.sh
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
#! /bin/sh
set -e
# Default values
: "${OCE_USE_PCH=OFF}"
: "${OCE_COPY_HEADERS_BUILD=OFF}"
: "${OCE_MULTITHREAD_LIBRARY=NONE}"
echo "Timestamp" && date
cmake -DOCE_ENABLE_DEB_FLAG:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DOCE_USE_TCL_TEST_FRAMEWORK:BOOL=ON \
-DOCE_TESTING:BOOL=ON \
-DOCE_DRAW:BOOL=ON \
-DOCE_VISUALISATION:BOOL=ON \
-DOCE_OCAF:BOOL=ON \
-DOCE_DATAEXCHANGE:BOOL=ON \
-DOCE_USE_PCH:BOOL="${OCE_USE_PCH}" \
-DOCE_COPY_HEADERS_BUILD:BOOL="${OCE_COPY_HEADERS_BUILD}" \
-DOCE_WITH_GL2PS:BOOL=ON \
-DOCE_WITH_FREEIMAGE:BOOL=ON \
-DOCE_MULTITHREAD_LIBRARY:STRING="${OCE_MULTITHREAD_LIBRARY}" \
..
echo ""
echo "Timestamp" && date
if test "$RUN_TESTS" = true; then
# travis-ci truncates when there are more than 10,000 lines of output.
# Builds generate around 9,000 lines of output, trim them to see test
# results.
make -j8 | grep Built
# Run OCE tests
echo "Timestamp" && date
make test
# Run OCCT tests, but overwrite DrawLaunchTests.draw to write
# an XML summary file at a specified location
cat > DrawLaunchTests.draw <<EOT
testgrid -outdir occt -xml summary.xml -refresh 300
exit
EOT
echo "Timestamp" && date
cmake -P DrawLaunchTests.cmake || true
else
make -j8
fi
echo "Timestamp" && date