File: .travis.yml

package info (click to toggle)
inventor 2.1.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 33,676 kB
  • sloc: ansic: 34,082; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 343; perl: 234; awk: 141; csh: 35; makefile: 17; sed: 11
file content (65 lines) | stat: -rw-r--r-- 1,275 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
#--------------------------------------------------------------------------------------------------
# Configuration script for use with continuous integration service travis-ci.org
#

notifications:
  email:
    - aumuell@reserv.at

language: cpp
cache: ccache

os:
    - linux
    #- osx

env:
    #- BUILD_TYPE="Make"
    #- BUILD_TYPE="Debug"
    - BUILD_TYPE="Release"

dist: focal

osx_image:
    - xcode12.2

jobs:
    exclude:
        - os: osx
          env: BUILD_TYPE="Debug"

addons:
    apt:
        packages:
            - cmake
            - ninja-build
            - bison
            - libjpeg-dev
            - libmotif-dev
            - libxi-dev
            - libglu1-mesa-dev
    homebrew:
        #update: true # necessary for 'brew bundle' with xcode10.3 and older
        packages:
            - ccache
            - cmake
            - ninja
            - jpeg


before_install:
    - if [ "$TRAVIS_OS_NAME" = "linux" ]; then rm -f ${HOME}/.ccache/ccache.conf; ccache --set-config=sloppiness=file_macro,time_macros; fi

script:

    - BUILD=build-${BUILD_TYPE}
    - mkdir $BUILD
    - cd $BUILD
    - >
      cmake
      -G Ninja
      -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
      -DINVENTOR_SAMPLES=ON
      -DINVENTOR_EXAMPLES=ON
      ..
    - ninja -v