forked from tpaviot/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.build.sh
51 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
51
#! /bin/sh
set -e
# Default values
: "${BUILD_USE_PCH=ON} ${USE_TBB=OFF} ${USE_GL2PS=OFF} ${USE_FREEIMAGE=OFF}"
echo "Timestamp" && date
cmake -DBUILD_WITH_DEBUG:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_MODULE_Draw:BOOL=OFF \
-DBUILD_USE_PCH:BOOL="${BUILD_USE_PCH}" \
-DBUILD_Inspector:BOOL=OFF \
-DUSE_GL2PS:BOOL="${USE_GL2PS=OFF}" \
-DUSE_FREEIMAGE:BOOL="${USE_FREEIMAGE=OFF}" \
-DUSE_TBB:BOOL="${USE_TBB}" \
-DUSE_FFMPEG:BOOL=OFF \
-DUSE_VTK:BOOL=OFF \
-DINSTALL_DIR=/opt/build/oce0.19 \
..
echo ""
echo "Timestamp" && date
make -j8 | grep Built
# check for custom.hs
ls -l
make install > installed_files
# 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