| 1 | #-------------------------------------------------------------------------------------------------- |
| 2 | # Configuration script for use with continuous integration service travis-ci.org |
| 3 | # |
| 4 | |
| 5 | notifications: |
| 6 | email: |
| 7 | - [email protected] |
| 8 | |
| 9 | language: cpp |
| 10 | cache: ccache |
| 11 | |
| 12 | os: |
| 13 | - linux |
| 14 | #- osx |
| 15 | |
| 16 | env: |
| 17 | #- BUILD_TYPE="Make" |
| 18 | #- BUILD_TYPE="Debug" |
| 19 | - BUILD_TYPE="Release" |
| 20 | |
| 21 | dist: focal |
| 22 | |
| 23 | osx_image: |
| 24 | - xcode12.2 |
| 25 | |
| 26 | jobs: |
| 27 | exclude: |
| 28 | - os: osx |
| 29 | env: BUILD_TYPE="Debug" |
| 30 | |
| 31 | addons: |
| 32 | apt: |
| 33 | packages: |
| 34 | - cmake |
| 35 | - ninja-build |
| 36 | - bison |
| 37 | - libjpeg-dev |
| 38 | - libmotif-dev |
| 39 | - libxi-dev |
| 40 | - libglu1-mesa-dev |
| 41 | homebrew: |
| 42 | #update: true # necessary for 'brew bundle' with xcode10.3 and older |
| 43 | packages: |
| 44 | - ccache |
| 45 | - cmake |
| 46 | - ninja |
| 47 | - jpeg |
| 48 | |
| 49 | |
| 50 | before_install: |
| 51 | - if [ "$TRAVIS_OS_NAME" = "linux" ]; then rm -f ${HOME}/.ccache/ccache.conf; ccache --set-config=sloppiness=file_macro,time_macros; fi |
| 52 | |
| 53 | script: |
| 54 | |
| 55 | - BUILD=build-${BUILD_TYPE} |
| 56 | - mkdir $BUILD |
| 57 | - cd $BUILD |
| 58 | - > |
| 59 | cmake |
| 60 | -G Ninja |
| 61 | -DCMAKE_BUILD_TYPE=${BUILD_TYPE} |
| 62 | -DINVENTOR_SAMPLES=ON |
| 63 | -DINVENTOR_EXAMPLES=ON |
| 64 | .. |
| 65 | - ninja -v |