forked from libhand/libhand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
126 lines (121 loc) · 3.59 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
language: cpp
# Travis Continuous Integration Build Matrix allows different OS/package/compiler versions to be specified
# Unfortunately, common packages cannot be specified separately, and multidimentional matrix are not yet
# supported, leading to a lot of duplication in the matrix section below.
matrix:
include:
# Ubuntu 12.04 Precise build with GCC
- os: linux
dist: precise
sudo: required
compiler: gcc
env:
- OGRE_HOME=/usr/lib/x86_64-linux-gnu/OGRE-1.7.4
addons:
apt:
packages:
- libogre-dev
- libboost-system-dev
- libglu1-mesa-dev
- libxt-dev
- libopencv-dev
- tcl
- tk
- libboost-system-dev
- libboost-filesystem-dev
# Ubuntu 12.04 Precise build with Clang
- os: linux
dist: precise
sudo: required
compiler: clang
env:
- OGRE_HOME=/usr/lib/x86_64-linux-gnu/OGRE-1.7.4
addons:
apt:
packages:
- libogre-dev
- libboost-system-dev
- libglu1-mesa-dev
- libxt-dev
- libopencv-dev
- tcl
- tk
- libboost-system-dev
- libboost-filesystem-dev
# Ubuntu 14.04 Trusty build with GCC
- os: linux
dist: trusty
compiler: gcc
sudo: required
env:
- OGRE_HOME=/usr/lib/x86_64-linux-gnu/OGRE-1.9.0
addons:
apt:
packages:
- libogre-1.9-dev
- libboost-system-dev
- libglu1-mesa-dev
- libxt-dev
- libopencv-dev
- tcl
- tk
- libboost-system-dev
- libboost-filesystem-dev
# Ubuntu 14.04 Trusty build with Clang
- os: linux
dist: trusty
compiler: clang
sudo: required
env:
- OGRE_HOME=/usr/lib/x86_64-linux-gnu/OGRE-1.9.0
addons:
apt:
packages:
- libogre-1.9-dev
- libboost-system-dev
- libglu1-mesa-dev
- libxt-dev
- libopencv-dev
- tcl
- tk
- libboost-system-dev
- libboost-filesystem-dev
# macOS
- os: osx
osx_image: xcode8.2
compiler: cmake
sudo: required
before_install:
- brew update
- brew tap homebrew/science
- brew tap osrf/simulation
- brew update
# brew is already installed, but can install this version, first `brew unlink boost`
# uninstall numpy so that brew will not complain
- /usr/bin/yes | pip uninstall numpy
- brew install opencv
- travis_wait brew install ogre
# Setup a X Virtual Framebuffer to allow opening of X display
before_script:
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi"
script:
- mkdir build
- pushd build
- cmake ..
# No unit tests yet
- make
# Collate libhand build artifacts into local "dist" directory (for external applications to link against)
- make install
- popd
# Build examples
- pushd examples
- mkdir build
- pushd build
- cmake ..
- make
- popd
- popd
# Setup runtime link paths (see BUILD.DEBIAN.md)
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${OGRE_HOME}; sudo ldconfig; fi"
# Run LibHand integration test (only on linux, macos on travis doesn't seem to support xvfb)
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then ./examples/build/ogre_rendering_test .; fi"