File: .travis.build.sh

package info (click to toggle)
oce 0.18.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 301,460 kB
  • sloc: cpp: 1,190,610; ansic: 67,225; sh: 11,667; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 344; xml: 292; perl: 37
file content (50 lines) | stat: -rw-r--r-- 1,353 bytes parent folder | download | duplicates (3)
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