File: .travis.yml

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 (95 lines) | stat: -rw-r--r-- 3,383 bytes parent folder | download
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
    dist: trusty
  - os: linux
    compiler: clang
    env: RUN_TESTS=true OCE_USE_PCH=ON  OCE_COPY_HEADERS_BUILD=ON
    dist: trusty
  - 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
  - os: osx
    compiler: clang
    env: OCE_USE_PCH=ON  OCE_COPY_HEADERS_BUILD=ON
  - os: osx
    osx_image: xcode8.3
    compiler: clang
    env: OCE_USE_PCH=ON  OCE_COPY_HEADERS_BUILD=ON
  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
    - os: osx
      osx_image: xcode8.3
      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 add-apt-repository -y ppa:ubuntu-toolchain-r/test;
        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;
        sudo apt-get install -qq gcc-5 g++-5;
        sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5;     
    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/