forked from dev-osrose/osIROSE-new
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
325 lines (320 loc) · 13.8 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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
env:
global:
- secure: s8DdaxdWVR3qRBxfxO6UjugB1dWlEnv9KhF1ZUHDhWziPtoecKjCXnJYSB6EOddTPoJXtOdTVW9ThGGCvKQ+vYdGNce+PCWglruANO/lEz/82HWPZkTKbw4WyoDo5GqlFCu1C3gY9dA58ClpGDlX5BNQA81JCJrWKUdR2J0/WW9USPKHxDLGISYKt28nwVjywR8uDnysBJkmmS+53Ge2MSzmOLuEZeysq7iCD6xssPL5UDDb/itNOc4OkvRGtvTnLrMF4c7naFRfbhc7NR1MxKz+eu2DgM9SAnJrh1jnYXWu/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='"$TRAVIS_OS_NAME" != osx -a "$BUILD_TYPE" = Release'
- coverity_scan_script_test_mode=false
- secure: tvFQn4BjO/DG0yE5NEdZsmY73qsxhN5CsXl+C4GkCzz8KgtOGyVFij5R18+IP3X44CKOz54dLy9pE3lCY2v9wvvLnnv1hV3kH2EvV5Ccv2zw8jozz7OpxK2GMSoqPvHK/FAEo3mbuwhnOS2fEV3+hWSF9/piwSAmFhnjH7VHZnnx8yVfpzEl0Oq4JLM1fEx400Z+Glvn9uDfjY8cvzRVp8HqHTuPNNRLmNvGPAYqstpKAxEh6Tml6eUrCxbndbcvtTt7vlshW9OuU5LVh2Y63ftZpsKCWfpu5K4MfgD4oLineo+2zz3jfv/Hs8vTVLzRQph6OkxLiZBqUgUyoZzZ/r4bMQbbS6wmbWwZOaIQyjFRr68FZ/yW4JJ/KkUhMB3LA7it2rNhhI6+jTQqvLO+VAucuUmFJ0xIsbULBTo7cyL7X40rDLFxhXNLTjcqPT1nUzKCrmFxrDh7utegggN0UtXVAWl6KN8f003TVlunM+BrB8r08kX/JU0modFzXS0sMDF/tuzMd9dd/R4CtoHAuP20J7LZ81EA8IbKJ5j6dsc8l+Ti5/LwLrEtxXnD6MSSNDoSZszeyLA78+zGzKLNNvHGdnHTFgFd3Q/gVYJgH6AWAVCJeSnwXbI78azIFohPwsT/JsJS092Ck6rgRKpbZNNmOVfpn6WsXoQBrLpcg0A=
# start artifacts
- ARTIFACTS_BUCKET=osirose-builds
- secure: "tDTFSzBd6ASR8BM/pZMLMQy1jjlbxA81WaLfZ70OgTZE6KZ+X+mSdu/i5SyXzhdZSl62tVDo2jIjGupGLtzWjMtRJiN2zNHscYS+V4BbSfk97zKXs+fH96aDlGJBIqJSxT3aRqgvTCLFXzEWyZEQxzYX7u9I5P0ftMBOalkxfcU1JrBerJBdsXLFuGjKfyGfCOzvRBCjzpAhKHTsD4ecJyqqTk3XqDqE4P+8ibJXw0fWj6D0K2XTNq4krol+Vmcw2qZEGp3gVAy6blOM1ggopFR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wdo="
# end artifacts
- PROOT=$TRAVIS_BUILD_DIR
- SUITE=tests
- PATH=$PATH:$TRAVIS_BUILD_DIR/ninja
services:
- mysql
matrix:
include:
- env: g++-5 BUILD_TYPE=Release
sudo: required
language: cpp
addons:
# artifacts:
# paths:
# - ${PROOT}/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}.tar.gz
apt:
sources:
- ubuntu-toolchain-r-test
- extras-precise
- boost-latest
- kalakris-cmake
packages:
- cmake
- lcov
- libboost-dev
- perl
- gcc-5
- g++-5
cache:
directories:
- "./protobuf"
branches:
except:
- coverity_scan
before_install:
- export GCOV_PATH=/usr/bin/gcov-5
- export LCOV_PATH=$HOME/usr/bin/lcov
- export GENHTML_PATH=$HOME/usr/bin/genhtml
- export PREFIX=$HOME
- export CXX="g++-5" CC="gcc-5";
- bash ./ci/.travis.install-mysql-5.7.sh
- "./ci/before_install.sh"
install:
- "./ci/install.sh"
before_script:
- "./ci/before_script.sh"
script:
- cd build
- "../ci/script.sh"
- env: g++-6 BUILD_TYPE=Debug
sudo: required
language: cpp
addons:
# artifacts:
# paths:
# - ${PROOT}/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}.tar.gz
apt:
sources:
- ubuntu-toolchain-r-test
- extras-precise
- boost-latest
- kalakris-cmake
packages:
- cmake
- lcov
- libboost-dev
- perl
- gcc-6
- g++-6
cache:
directories:
- "./protobuf"
branches:
except:
- coverity_scan
before_install:
- export GCOV_PATH=/usr/bin/gcov-6
- export LCOV_PATH=$HOME/usr/bin/lcov
- export GENHTML_PATH=$HOME/usr/bin/genhtml
- export PREFIX=$HOME
- export CXX="g++-6" CC="gcc-6";
- bash ./ci/.travis.install-mysql-5.7.sh
- "./ci/before_install.sh"
install:
- "./ci/install.sh"
before_script:
- "./ci/before_script.sh"
script:
- cd build
- "../ci/script.sh"
- env: g++-6 BUILD_TYPE=Release
sudo: required
language: cpp
addons:
# artifacts:
# paths:
# - ${PROOT}/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}.tar.gz
apt:
sources:
- ubuntu-toolchain-r-test
- extras-precise
- boost-latest
- kalakris-cmake
packages:
- cmake
- lcov
- libboost-dev
- perl
- gcc-6
- g++-6
cache:
directories:
- "./protobuf"
branches:
except:
- coverity_scan
before_install:
- export SUITE=none
- export GCOV_PATH=/usr/bin/gcov-6
- export LCOV_PATH=$HOME/usr/bin/lcov
- export GENHTML_PATH=$HOME/usr/bin/genhtml
- export PREFIX=$HOME
- export CXX="g++-6" CC="gcc-6";
- bash ./ci/.travis.install-mysql-5.7.sh
- "./ci/before_install.sh"
install:
- "./ci/install.sh"
before_script:
- "./ci/before_script.sh"
script:
- cd build
- "../ci/script.sh"
- env: clang-3.7 LIBCXX=1 BUILD_TYPE=Debug
sudo: required
language: cpp
addons:
# artifacts:
# paths:
# - ${PROOT}/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}.tar.gz
apt:
sources:
- ubuntu-toolchain-r-test
- extras-precise
- boost-latest
- kalakris-cmake
- llvm-toolchain-precise-3.7
packages:
- cmake
- lcov
- libboost-dev
- perl
- llvm-3.7
- llvm-3.7-dev
- llvm-runtime
- clang-3.7
- libstdc++5
cache:
directories:
- "./protobuf"
- llvm-3.7.0
branches:
except:
- coverity_scan
before_install:
- export GCOV_PATH=${PROOT}/ci/llvm-gcov.sh
- export LCOV_PATH=$HOME/usr/bin/lcov
- export GENHTML_PATH=$HOME/usr/bin/genhtml
- export PREFIX=$HOME
- export CXX="clang++-3.7" CC="clang-3.7";
- bash ./ci/.travis.install-mysql-5.7.sh
- "./ci/before_install.sh"
install:
- "./ci/install.sh"
before_script:
- "./ci/before_script.sh"
script:
- cd build
- "../ci/script.sh"
- env: clang-3.7 LIBCXX=1 BUILD_TYPE=Release
sudo: required
language: cpp
addons:
# artifacts:
# paths:
# - ${PROOT}/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}.tar.gz
apt:
sources:
- ubuntu-toolchain-r-test
- extras-precise
- boost-latest
- kalakris-cmake
- llvm-toolchain-precise-3.7
packages:
- cmake
- lcov
- libboost-dev
- perl
- llvm-3.7
- llvm-3.7-dev
- llvm-runtime
- clang-3.7
- libstdc++5
cache:
directories:
- "./protobuf"
- llvm-3.7.0
branches:
except:
- coverity_scan
before_install:
- export GCOV_PATH=${PROOT}/ci/llvm-gcov.sh
- export LCOV_PATH=$HOME/usr/bin/lcov
- export GENHTML_PATH=$HOME/usr/bin/genhtml
- export PREFIX=$HOME
- export CXX="clang++-3.7" CC="clang-3.7";
- bash ./ci/.travis.install-mysql-5.7.sh
- "./ci/before_install.sh"
install:
- "./ci/install.sh"
before_script:
- "./ci/before_script.sh"
script:
- cd build
- "../ci/script.sh"
- env: g++-6 coverity_scan
sudo: required
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- extras-precise
- boost-latest
- kalakris-cmake
packages:
- cmake
- lcov
- libboost-dev
- perl
- gcc-6
- g++-6
cache:
directories:
- "./protobuf"
branches:
only:
- coverity_scan
before_install:
- export SUITE=none
- export GCOV_PATH=/usr/bin/gcov-6
- export LCOV_PATH=$HOME/usr/bin/lcov
- export GENHTML_PATH=$HOME/usr/bin/genhtml
- export PREFIX=$HOME
- export CXX="g++-6" CC="gcc-6";
- bash ./ci/.travis.install-mysql-5.7.sh
- "./ci/before_install.sh"
install:
- "./ci/install.sh"
script:
- echo "coverity scan"
after_success:
- echo "coverity scan success"
coverity_scan:
build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/.travis-coverity-scan-build.sh
project:
name: "$TRAVIS_REPO_SLUG"
notification_email: [email protected]
build_command_prepend: cov-configure --comptype gcc --compiler gcc-6 --template;
cov-configure --comptype gcc --compiler cmake --template; mkdir build; cd build;
cmake ..;
build_command: make
branch_pattern: coverity_scan
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/0363885535a5495e8f8f
on_success: change
on_failure: always
on_start: never
slack:
secure: KHU2ZMzBGGtsaWF7wylutlLPAxCEZD2/NQQbmbaEpsaWSitXnO9XOLRLsLJP6QGLOgiDHHmGcRiO7wgmbsvP79zRaChs/LLfUY2F5laXgpZdL9OI/z8zygeY1iSZSNMMr0MCYf7TilRvOqTSFpB7RcuQ65G1ZGow8h6MunU5WaSyjC7REOJcSmL3IQ08Zcf8oZgdd6EqogSW1Eubcp4IhlsiQQTLdzeAQWwkfJ8DDO1gPC8bWdJCBg9hMUub5K/UQHEOY8KmH1KTOk/FedjI8wTWD+0m8SjFJq8wUs9ieQyGikZbK6F8WmjZdG0GLRWb7POxIOQjqxi2/ZRUMTHvDr5s+0BUQmKYUwkc/oUf/Bg/eYnU/LjM7prnQU08ZPGDwoh5L/alZM4eGKez3KFb4Co3e7HSI+FN9mQFKcgjnMOJIE1kaw1V+9Uj1DJemWi6voKmApJ3s8U44FduI30fpAD0FQQw8dEfF2Iug3O093KdPy0aEySOZ44a0VYD5iB7Dc129xumwOd5EAvGXHc+3/Wf0TLsskct2IlNVv6DaKkstk0YXjz7PkhkMJEAvYYi/ANQ8h/Ixh7Xnj7bcX+boBazIM6V+U6sxysQUsvWihXpxtqs+N7Z0eiRbC7s4TAMX1hVVvoERlLRVOTCl+QsRemTgt1QXV0rMl78h8xg8lg=
after_success:
- mkdir ${PROOT}/public
- tar -czvf ${PROOT}/public/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}-${BUILD_TYPE}.tar.gz ${PROOT}/build/bin ${PROOT}/build/lib ${PROOT}/Database
deploy:
- provider: s3
access_key_id:
secure: "UWYxD84ECFtx0u+JL+HyFgX/AzGDbAqpLeSsYzd+MkC/tkf3EHdbJTwe/x+NPpItk5QmIVYTTqLjaFoX65stNI6DYawxJmOv/mkZcSgDQm3y4yEprbdAfDSjCRduIL+uGJN1V2S6ga9HFazndSlRFWN1KbrfpJf0I7b4oGvyH4U48Z4IE1Y8/AUFXnCKAp2IHsmGdGz6fZ0P/LYuk8yAInDfOluD0golWUp9EQh/IUJ+Ke/UZy3cYaKhDR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qr4BuTO7LO6KbJGo08gVkstNd9Ppxf5B4hmuI7fhPZKE7emg="
bucket: osirose-builds
skip_cleanup: true
local-dir: ${PROOT}/public
acl: public_read
upload-dir: ${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}
on:
repo: dev-osrose/osIROSE-new
# all_branches: true
branch: master
tag: true
- provider: releases
api_key:
secure: "BeGzqO3xstU53ChZHaEd0tx94UnOFE8mhD/47jLlBWy2MM1pxFfI9zYSfGaBAa0FBY4SjSxPyA8ChZcoHWVxSv0j59LxhI+sOyTS5Rak3UT1Nlm3WqmvRIEx5E9kuF4Z28nXQuJYPvMqdXwx7F4Qk2wRLuQHmrvllwnuEJouelR54EiAcF6h5Gk7G1j8Yvpn7kyJIJL8+a3zwEt8u4UEw8S9R4akti6EINmyYbKldVny4i8uzSas1fjeJmZlXLGvykjlcGFl4X5OEmShowRcHNjhyK7Awprbycbf7rV2es0V/UFIr+xYX/6z7sdtGiXpoBYTQksilE3IcYAt5WcvgxPnSgG12njcTHjhX+MQFW+bbYWr21OA9DQn+KfRMTI00DB3huv1KCFh5IawSjijY9j8scijMofb58vYj960yUJfoOnZeicp3raM4/eVRKCtEdk7UwWNLqqB3o1Cfug8ZohhSbUHeGUQfyCBtYWSrE6/xb5mQmOUQI54ocSUKcmvv59G58nZic0Nl29cj9aYyu1lc093gSxnQ9cCtwbNkKCHiA+Z5MGScJ5jwydylckzeQysUzOK/ISFU4O0vX48GhSBOb3D6O9K4AoVG43vBu9E895tktDuj0BQ4uvtT7fN8xDJc6vg2uAEQst0yfWJZ/qDzKJIEoFYnvbMQh0JCwA="
file: ${PROOT}/public/${TRAVIS_OS_NAME}-${TRAVIS_JOB_NUMBER}-${BUILD_TYPE}.tar.gz
skip_cleanup: true
on:
branch: master
condition: $CXX = "/usr/bin/g++-6"
tags: true