forked from deskvox/deskvox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (45 loc) · 1.44 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
#--------------------------------------------------------------------------------------------------
# Configuration script for use with continuous integration service travis-ci.org
#
sudo: false
dist: trusty
language: cpp
compiler:
- gcc
- clang
os:
- linux
- osx
env:
matrix:
- STD="CPP03" BUILD_TYPE="Debug"
- STD="CPP03" BUILD_TYPE="Release"
- STD="CPP11" BUILD_TYPE="Debug"
- STD="CPP11" BUILD_TYPE="Release"
addons:
apt:
packages:
- libboost-all-dev
- libglew-dev
- libopenscenegraph-dev
- libxi-dev
- libxmu-dev
- freeglut3-dev
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew install glew ;fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew install qt5 ;fi
script:
- export USE_QT4=ON
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export USE_QT4=OFF ;fi
- if [ "$STD" = "CPP03" ]; then export COMPILER_FLAGS="${COMPILER_FLAGS} -std=c++03"; fi
- if [ "$STD" = "CPP11" ]; then export COMPILER_FLAGS="${COMPILER_FLAGS} -std=c++11"; fi
- mkdir -p build
- cd build
- cmake ..
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DDESKVOX_USE_QT4=${USE_QT4}
"-DCMAKE_INSTALL_PREFIX=${HOME}/install"
"-DCMAKE_CXX_FLAGS=${COMPILER_FLAGS}"
- make VERBOSE=1
- make install