forked from hku-maplab/NatNet2OSCbridge
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
283 lines (245 loc) · 9.02 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# This file allows testing your addon using travis CI servers to use it you'll need to
# create an account in travis.org and enable your addon there.
#
# By default it will test linux 64bit and osx against the master and stable OF branches.
# Other platforms can be enabled by uncommenting the corresponding sections.
#
# If any extra install is needed to use the addon it can be included in the corresponding
# install script in:
#
# scripts/ci/$TARGET/install.sh
#
env:
global:
- APPNAME="NatNet2OSCbridge"
- secure: "pYFIATdNXF/xXJLhn8cMSKyodnNAU4eM8QxdChvkv7rVSjTAJnt7Bar0EpP2joryzcgszCxHKzlOQVm3dCyUJc2KR8Ic6A9EtD+T8FLsFnBFMboyBqIhQtxXk3IhoUn2jqONfnZzjkjldfl7gidR18PvuKxK2TzJH5KgTPX2NPgzkIiX/ETzrym2g9LaXcUB2dPPU9G6k4mRx9h15TwoCd2HQo9+Qi4jCX8nr81yihPen6b/mwim1lu2BRVJCav23qipAI0qbqoun5OL/0f/dNQs5ncIsR7ZnHjVihwqcw7mwsUcTgfI/ySAzsUuAPKK3JeDfeFRd70Lwyy20eQd+QpoJXTZzaloiTy9mNmpmudFZRLW8GlAChj6o7JfWUUaT9ZoZ2jpkeyaJpgcdB2jAxnxbiEKMuPp+AkRgVSwDhYvV8gEVxvo6BADfJI7xikFCvmRF6/3dNE5ZymX9j4jFsRFvTXxbg0FcO7sg5uqHh3lMPUJmSVnjwr7DyyDVEeN7sdMlwKZhf7aZvsmCcrXgVcB3Qk+9+clcNr5JbsULze04wgQhIAVLeZJTNpPSOOP/frP6brNP+WURE1wG5lphLrq3z06WcOx0H6j7ecwFmQfVoXFSb8evKS0pFZGP16sgM5ezkyy74vWpbQkWIhuFDEcxBpy/VDBJL4D0zaPHro="
language: c++
compiler: gcc
sudo: true
matrix:
include:
# fully specify builds, include can't dynamically expand matrix entries
# relative order of sudo and env is important so that addons: is recognized
# Linux 64bit, OF master
- os: linux
dist: bionic
sudo: required
env: TARGET="linux64" OF_BRANCH="master"
addons:
apt:
sources:
# - ubuntu-toolchain-r-test
packages:
- sshpass
- libssl-dev
- openssl
# - gdb
- libpoco-dev
# Linux 64bit, OF stable
- os: linux
dist: bionic
sudo: required
env: TARGET="linux64" OF_BRANCH="stable"
addons:
apt:
sources:
# - ubuntu-toolchain-r-test
packages:
- sshpass
- libssl-dev
- openssl
- libpoco-dev
# OSX, OF master
- os: osx
osx_image: xcode9.2
compiler: clang
env: TARGET="osx" OF_BRANCH="master" MACOSX_DEPLOYMENT_TARGET=10.9
addons:
ssh_known_hosts: pong.hku.nl
# OSX, OF stable: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="osx" OF_BRANCH="stable"
# Linux ARM6, OF master: Uncomment following lines to enable
# - os: linux
# sudo: required
# dist: trusty
# env: TARGET="linuxarmv6l" OF_BRANCH="master"
# Linux ARM6, OF stable: Not supported yet
# - os: linux
# sudo: required
# dist: trusty
# env: TARGET="linuxarmv6l" OF_BRANCH="stable"
# Linux ARM7, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="linuxarmv7l" OF_BRANCH="master"
# cache:
# directories:
# - ~/rpi2_toolchain
# - ~/firmware-master
# - ~/archlinux
# Linux ARM7, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="linuxarmv7l" OF_BRANCH="stable"
# cache:
# directories:
# - ~/rpi2_toolchain
# - ~/firmware-master
# - ~/archlinux
# Emscripten, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="emscripten" OF_BRANCH="master"
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - libstdc++6
# Emscripten, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="emscripten" OF_BRANCH="stable"
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - libstdc++6
# iOS, OF master: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="ios" OF_BRANCH="master"
# iOS, OF stable: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="ios" OF_BRANCH="stable"
# tvOS, OF master: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="tvos" OF_BRANCH="master"
# tvOS, OF stable: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="tvos" OF_BRANCH="stable"
# Android armv7, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="android" OPT="armv7" OF_BRANCH="master"
# cache:
# directories:
# - ~/android-ndk-r12b
# Android armv7, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="android" OPT="armv7" OF_BRANCH="stable"
# cache:
# directories:
# - ~/android-ndk-r12b
# Android x86, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="android" OPT="x86" OF_BRANCH="master"
# cache:
# directories:
# - ~/android-ndk-r12b
# Android x86, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="android" OPT="x86" OF_BRANCH="stable"
# cache:
# directories:
# - ~/android-ndk-r12b
# Exclude the default build that would otherwise be generated
# see https://github.com/travis-ci/travis-ci/issues/1228
exclude:
- compiler: gcc
install:
- git submodule update --init --recursive
- cd ~
- git clone --depth=1 --branch=$OF_BRANCH https://github.com/openframeworks/openFrameworks
- cd openFrameworks
# fails so we do it ourselves - scripts/ci/$TRAVIS_OS_NAME/install.sh
- if [ "$TARGET" == "linux64" ]; then
sudo scripts/linux/ubuntu/install_dependencies.sh -y;
if [ -f scripts/linux/download_libs.sh ]; then
scripts/linux/download_libs.sh;
fi
elif [ "$TARGET" == "osx" ]; then
brew update;
brew upgrade coreutils;
brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb;
if [ -f scripts/$TARGET/download_libs.sh ]; then
scripts/$TARGET/download_libs.sh;
fi
fi
# - scripts/linux/compileOF.sh
- if [ "$TARGET" == "linux64" ]; then
cd libs/openFrameworksCompiled/project;
make Debug;
fi
- cd ~/openFrameworks/addons
- git clone --depth=1 https://github.com/hku-ect/ofxNatNet.git
- git clone --depth=1 https://github.com/danomatika/ofxMidi.git
- git clone --depth=1 --branch=173stdlib https://github.com/sphaero/ofxImGui.git
- git clone --depth=1 --branch=msys2 --recursive https://github.com/sphaero/ofxOpenVRTracker.git
# fix poco on linux
- if [ "$TARGET" == "linux64" ]; then
rm -rf ofxPoco/libs;
fi
script:
# - scripts/ci/addons/build.sh
- cd $TRAVIS_BUILD_DIR/..
- mv $APPNAME ~/openFrameworks/apps/devApps/
- cd ~/openFrameworks/apps/devApps/$APPNAME
- mkdir bin/python
- cd ext/cpython
- if [ "$TARGET" == "osx" ]; then
brew install openssl xz;
./configure --prefix $HOME/openFrameworks/apps/devApps/$APPNAME/bin/python --disable-shared --with-openssl=$(brew --prefix openssl);
make -s && make install;
fi
- if [ "$TARGET" == "linux64" ]; then
./configure --prefix $HOME/openFrameworks/apps/devApps/$APPNAME/bin/python --disable-shared && make -s && make install;
fi
- cd ../..
- make Debug
- cd ..
- mv $APPNAME $TRAVIS_BUILD_DIR
- cd $TRAVIS_BUILD_DIR;
git:
depth: 256
after_success:
- git checkout config.make
- git fetch --all --tags
- cd bin
# TRAVIS_TAG is ony set when it is a tag (or release)
- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
if [ -n "$TRAVIS_TAG" ] || [[ $TRAVIS_BRANCH == "master" ]]; then
zip -r $( echo $TRAVIS_REPO_SLUG | cut -d"/" -f2)_${TRAVIS_OS_NAME}_$( git describe --tag --always --dirty --abbrev=4).zip *;
else
zip -r $( echo $TRAVIS_REPO_SLUG | cut -d"/" -f2)_${TRAVIS_OS_NAME}_${TRAVIS_BRANCH}_$( git describe --tag --always --dirty --abbrev=4).zip *;
fi
fi
- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then export SSHPASS=$BBPWD; fi
- echo '|1|AurlN3z7WhvxYbuNdsouT5s7FYs=|cjTFODbUXIXKeWihh1BjnfXgARw= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFxUlmYnS6gItSE4QuXpJxVFqhatyadmYaSQ+GPYwna9bs3KoWxfYl2j0ijA4aVAPPZLjLAjNbxd26fIrocW5fQ=' >> $HOME/.ssh/known_hosts
- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then sshpass -e scp *.zip buildbot@pong.hku.nl:public_html/nightly/; fi
- cd ..
deploy:
provider: releases
api_key:
secure: "AxEB/OeZa4c8K6mdUPXL4EDV0zqdIlhuSa6Bnank7qMZ8klYudOUitLC79vV4rYsG0+PX0OjIgSBaTT7euAgLfTKaE/YiTR+HtvZW3fQQEnsVWbobCDkDqGN5a1O5dM31YWFkURjEAFVYpYa6h2CgQtQ4NMtWllOmt3Ddgn7yPomw1dBnkoGWSPpEBw0Cm7k76wI2Mwuqlf6Zjby4W7Jm7Xn+G6WFPfYcWLE/JMXMpPQNXA6nlvrgMuHv3oVe24QFwylnPfFeGQO2R6xfiyRMWn0IuwifoGIK+tcwkG0s9GR+VyJqTzhPypPUY70meQNb9VvnuOTDSGkArdYgY+BTIfBHne7d17BNp0JxeOonHaVaRO8Q/Dv4YmzzpkBlBui3XV2/kP9ktXZL33IPCLWvINVUWGc7EUuJbSctx24KENjCpSSCjZbB2FVjAmaV8mUd5FvugtntNDPMscHrmZ+sg3qSQiPz0Z1fbzJkzs6U6HNSm2G5Q2FgTPehTVu5g6FZIfO/PnPeJEfmx1RKBTqa8a33X+unyeoMRRafzCfdiht5m038PNwCRsif205mI0RuI8JxGrJJGICmq1+qXBxGyzyQWe2mb3yy75CirirwwXEa7CXOtNDiDmBOI7bzlkdP9t3h7HS7PWJ/1fjoB1OjPeYyWUfsieyQRQz32ccnkw="
file_glob: true
file: bin/*.zip
skip_cleanup: true
overwrite: true
on:
tags: true
repo: hku-ect/NatNet2OSCbridge