This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
298 lines (227 loc) · 6.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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
---
cache:
directories:
- $HOME/.m2
pip: true
git:
submodules: false
branches:
only:
- master
- /^travis.*/
- /^v.*/
stages:
- name: test
- name: deploy kotlin snapshot
if: branch = master AND type != pull_request
- name: deploy kotlin
if: branch =~ ^v.*-kt$
- name: deploy python
if: branch =~ ^v.*-py$
- name: deploy ruby
if: branch =~ ^v.*-rb$
- name: deploy dart
if: branch =~ ^v.*-dart$
jobs:
include:
# Kotlin/Java
- stage: test
language: java
jdk: openjdk9
before_script:
- cd client-kotlin-java
install: skip
after_success: bash <(curl -s https://codecov.io/bash) -F kotlinjava -s ./target/site/jacoco/
- stage: deploy kotlin
language: java
jdk: openjdk9
before_script:
- cd client-kotlin-java
script: skip
install: skip
deploy:
- provider: script
script: mvn --settings .maven.xml site -DskipTests=true -B && git add dokka
on:
all_branches: true
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
verbose: true
local_dir: ./dokka
on:
all_branches: true
- stage: deploy kotlin
language: java
jdk: openjdk9
before_script:
- cd client-kotlin-java
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
install: skip
script: skip
deploy:
- provider: script
script: mvn deploy --settings .maven.xml -DskipTests=true -B
on:
all_branches: true
- stage: deploy kotlin snapshot
language: java
jdk: openjdk9
before_script:
- cd client-kotlin-java
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
install: skip
script: skip
deploy:
- provider: script
script: mvn deploy --settings .maven.xml -DskipTests=true -B
on:
all_branches: true
# C++
- stage: test
language: c++
compiler:
- gcc
git:
submodules: true
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
- g++-6
env:
- CC=gcc-6
- CXX=g++-6
before_script:
- cd client-c++
script:
- mkdir -p build/run
- cd build/run
- cmake -DCMAKE_BUILD_TYPE=Debug ../..
- make
- make test_with_coverage
after_success:
- mv test_with_coverage.info.cleaned test_with_coverage.info
- bash <(curl -s https://codecov.io/bash) -F cpp -X gcov
# Python
- stage: test
language: python
python: 3.7
before_script:
- cd client-python3
install: pip install tox tox-travis coverage
script: tox
after_success: bash <(curl -s https://codecov.io/bash) -F python3 -s ./client-python3
- stage: deploy python
language: python
python: 3.7
before_script:
- cd client-python3
install: skip
script: skip
deploy:
- provider: pypi
user: "__token__"
password: $PYPI_TOKEN
distributions: "sdist bdist_wheel"
skip_existing: true
on:
all_branches: true
# Go
- stage: test
language: go
go:
- 1.8.x
- tip
before_install:
- cd client-go
- go get -t -v ./...
- chmod +x ./test.sh
script:
- ./test.sh
after_success: bash <(curl -s https://codecov.io/bash) -F go
# Ruby
- stage: test
language: ruby
rvm:
- 2.6.5
env:
- CODECOV_FLAG=ruby
before_install:
- cd client-ruby
- gem update --system
- gem install bundler --no-document
script: bundle exec rake
- stage: deploy ruby
language: ruby
rvm:
- 2.6.5
before_install:
- cd client-ruby
- gem update --system
- gem install bundler --no-document
install: skip
script: skip
deploy:
- provider: rubygems
api_key: $RUBYGEMS_KEY
gem: animatedledstrip-client
on:
all_branches: true
# Dart
- stage: test
language: dart
before_install:
- cd client-dart
before_script:
- pub global activate coverage
script:
- pub run test
after_success:
- dart --disable-service-auth-codes --enable-vm-service=9292 --pause-isolates-on-exit test/test_all.dart &
- pub global run coverage:collect_coverage --port=9292 --out=coverage.json --wait-paused --resume-isolates
- pub global run coverage:format_coverage --lcov --packages=.packages --in=coverage.json --out=lcov.info --report-on=lib
- rm coverage.json
- bash <(curl -s https://codecov.io/bash) -F dart
- stage: deploy dart
language: dart
before_install:
- cd client-dart
before_deploy:
- mkdir -p ~/.pub-cache
- echo $DART_CREDENTIALS > ~/.pub-cache/credentials.json
install: skip
script: skip
deploy:
- provider: script
script: pub publish -f
on:
all_branches: true
# Rust
- stage: test
language: rust
cache: cargo
before_cache:
- cargo install cargo-tarpaulin
before_install:
- cd client-rust
- cargo install cargo-tarpaulin
addons:
apt:
packages:
- libssl-dev
script:
- cargo clean
- cargo build
- cargo test
after_success:
- cargo tarpaulin --out Xml
- bash <(curl -s https://codecov.io/bash) -F rust