-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
242 lines (238 loc) · 6.07 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
language: node_js
node_js:
- 'node'
sudo: required
os: linux
dist: bionic
addons:
chrome: stable
sonarcloud:
organization: "$SONAR_KEY"
token: "$SONAR_TOKEN"
cache: npm
branches:
only:
- main
- develop
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
script: skip
jobs:
include:
# - stage: test
# name: Run Tests
# if: NOT (tag IS present)
# script:
# - npm run build:build-info
# - npm run build:libs
# - npm run test
# - stage: deploy
# name: Deploy staging to Netlify
# if: branch = develop
# script:
# - npm run build:build-info
# - npm run build:libs
# - npm run build -- --base-href=/
# - npm run compodoc
# deploy:
# provider: pages
# target-branch: staging
# skip-cleanup: true
# github-token: "$GITHUB_TOKEN"
# keep-history: false
# local-dir: dist/make-a-vis-demo
# on:
# branch: develop
# - stage: deploy
# name: Deploy demo to GitHub Pages
# if: branch = main
# script:
# - npm run build:build-info
# - npm run build:libs
# - npm run build -- --base-href=/make-a-vis/
# - npm run compodoc
# deploy:
# provider: pages
# skip-cleanup: true
# github-token: "$GITHUB_TOKEN"
# keep-history: false
# local-dir: dist/make-a-vis-demo
# on:
# branch: main
- stage: deploy
name: Build and publish make-a-vis
if: tag IS present
script:
- npm run build:build-info
- npm run build:libs
before_deploy:
- cd dist/make-a-vis
after_deploy: &1
- cd ../../
deploy: &2
provider: npm
skip-cleanup: true
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
on:
tags: true
repo: cns-iu/make-a-vis
- stage: deploy
name: Build and publish dvl-fw-core
if: tag IS present
script:
- npm run build:dvl-fw-core
before_deploy:
- cd dist/dvl-fw-core
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish dvl-fw-isi
if: tag IS present
script:
- npm run build:libs
before_deploy:
- cd dist/dvl-fw-isi
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish dvl-fw-nsf
if: tag IS present
script:
- npm run build:libs
before_deploy:
- cd dist/dvl-fw-nsf
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish dvl-fw-angular
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
before_deploy:
- cd dist/dvl-fw-angular
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish dvl-fw-cli
if: tag IS present
script:
- npm run build:libs
before_deploy:
- cd dist/dvl-fw-cli
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish mav-embed
if: tag IS present
script:
- npm run build:libs
- npm run build:mav-embed
before_deploy:
- cd dist/mav-embed
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish geocoder-ts
if: tag IS present
script:
- npm run build:geocoder-ts
before_deploy:
- cd dist/geocoder-ts
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish geomap
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:ngx-vega
- npm run build:geomap
before_deploy:
- cd dist/geomap
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish legends
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:legends
before_deploy:
- cd dist/legends
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish network
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:ngx-vega
- npm run build:network
before_deploy:
- cd dist/network
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish ngx-vega
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:ngx-vega
before_deploy:
- cd dist/ngx-vega
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish scatterplot
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:ngx-vega
- npm run build:scatterplot
before_deploy:
- cd dist/scatterplot
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish science-map
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:ngx-vega
- npm run build:science-map
before_deploy:
- cd dist/science-map
after_deploy: *1
deploy: *2
- stage: deploy
name: Build and publish temporal-bargraph
if: tag IS present
script:
- npm run build:dvl-fw-core
- npm run build:dvl-fw-angular
- npm run build:ngx-vega
- npm run build:temporal-bargraph
before_deploy:
- cd dist/temporal-bargraph
after_deploy: *1
deploy: *2
# - stage: test
# name: Run sonar checks
# if: NOT (tag IS present)
# script:
# - sonar-scanner -X
# - stage: test
# name: Run linter
# if: NOT (tag IS present)
# script:
# - npm run lint
notifications:
slack:
secure: mDjJjSgHV82ZjLFFqx9PbMiVHXZ+BpIKvO/YIaYn2w0O08OFoDQaen4qMl61sjXC8Ow4RQVb07n7jgpo4UDaQJA66gRDblR4J1/HjUB2NrgWV0qSm8U5FjHQXF6dw6oruvMlD6Zi98KfY2/5Sf5KnH9zvRqi8hxMm+LtVwk5LaeV4w4OFZzrr3Grb33YUK8UiSZ5Zd4eA2X2Ln23Lu53J46b8I017rq9EqiNYh87dfkoePIsDAQtIc7AAOegyd/HrzvFcIN+joVtcIGjkP1A19GH4ZxaA28uIHlKwIFVebJDatMDEFzg4CM8f2EJYFG1suDb2PTZIRC5pg5VPGSD1bxmr/vKsHR/wtYs1e6zGuS/tonS4wo32GnGaFlo1+c5AzNqX7MelVf5Oc814Kowgdpku7J+RQq80HQOt1IximPfHZ4sUDbNinvYcrl+ptSYJ/jDWlrKSxwzdLGiUl2PGasxG9OnWU0+CRe0qm1rijpGjYEwJwbYnJMFAOso0jV6+OPuBqjo9RipaXx85wRP8fkpO2zkBsGl3Ant1R9P8WoNw+8A+y82S0lauYoCVLd8QVBA5HLDWuGjkV1lwnk1DBBjLP+Erri2PmImW+qujOkfpOgplzhh+b12wh34FkieXOylxKV+j3UaHMnhrA2gXHnkdr+dPAGPDR1frZWkTp8=