forked from hlrs-vis/covise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (66 loc) · 2.83 KB
/
.travis.yml
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
#--------------------------------------------------------------------------------------------------
# Configuration script for use with continuous integration service travis-ci.org
#
notifications:
email:
sudo: false
dist: trusty
language: cpp
os:
- linux
- osx
env:
matrix:
- APP="covise" BUILD_TYPE="Debug"
- APP="covise" BUILD_TYPE="Release"
- APP="cover" BUILD_TYPE="Debug"
- APP="cover" BUILD_TYPE="Release"
matrix:
exclude:
# FIXME
- os: osx
addons:
apt:
packages:
- libboost-all-dev
- libglew-dev
- libxi-dev
- libxmu-dev
- freeglut3-dev
- qttools5-dev
- qtscript5-dev
- libqt5scripttools5
- libqt5svg5-dev
- libqt5opengl5-dev
- libqt5webkit5-dev
- libxerces-c-dev
- libpng12-dev
- libopenscenegraph-dev
- libosgearth-dev
- libavcodec-dev
- libswscale-dev
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall xerces-c ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall glew ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall giflib ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall libpng ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall libtiff ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall freetype ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall boost ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall python3 ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew reinstall qt5 ;fi
script:
- export COVISE_CMAKE_OPTIONS=-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- export COVISE_CMAKE_OPTIONS="-DCOVISE_BUILD_RENDERER:BOOL=OFF "$COVISE_CMAKE_OPTIONS
- if [ "$APP" = "covise" ]; then export COVISE_CMAKE_OPTIONS="-DCOVISE_BUILD_COVER:BOOL=OFF "$COVISE_CMAKE_OPTIONS; fi
- if [ "$APP" = "cover" ]; then export COVISE_CMAKE_OPTIONS="-DCOVISE_BUILD_ONLY_COVER_PREREQ:BOOL=ON "$COVISE_CMAKE_OPTIONS; fi
- export COVISE_CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX="${HOME}"/install "$COVISE_CMAKE_OPTIONS
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export ARCHSUFFIX=macos; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export ARCHSUFFIX=tahr; fi
- if [ "${BUILD_TYPE}" != "Debug" ]; then export ARCHSUFFIX=${ARCHSUFFIX}opt; fi
- source .covise.sh
- if [ "$APP" = "covise" ]; then make covise -j6; fi
- if [ "$APP" = "cover" ]; then unset PYTHON_HOME; fi
- if [ "$APP" = "cover" ]; then make -j6; fi