forked from ipfs/js-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
279 lines (235 loc) · 7.22 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
language: node_js
branches:
only:
- master
- /^release\/.*$/
stages:
- check
- test
- tag
node_js:
- '10'
- '12'
os:
- linux
- osx
- windows
env:
# This stops Windows builds from hanging
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336
- YARN_GPG=no
addons:
apt:
packages:
# Fixes error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
# https://github.com/electron/electron/issues/1518
- libgconf-2-4
# Ensure chrome is the latest version
# https://stackoverflow.com/questions/57903415/travis-ci-chrome-62-instead-of-77
- dpkg
chrome: stable
script: npx nyc -s npx aegir test -t node --timeout 10000 --bail
after_success:
- npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
jobs:
include:
- stage: check
script:
- npx aegir build --bundlesize
- npx aegir dep-check -- -i wrtc -i electron-webrtc
- npm run lint
- stage: test
name: chrome
addons:
chrome: stable
script:
- npx aegir test -t browser -t webworker
- stage: test
name: firefox
addons:
firefox: latest
script:
- npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless
- stage: test
name: electron-main
os: osx
script:
- npx aegir test -t electron-main --bail --timeout 10000
- stage: test
name: electron-renderer
os: osx
script:
- npx aegir test -t electron-renderer --bail --timeout 10000
- stage: test
name: interop - node
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t node --bail
- stage: test
name: interop - browser
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t browser --bail
- stage: test
name: interop - electron-main
os: osx
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t electron-main -f ./test/node.js --bail --timeout 10000
- stage: test
name: interop - electron-renderer
os: osx
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t electron-renderer -f ./test/browser.js --bail --timeout 10000
- stage: test
name: external - ipfs-companion
script:
- npm run test:external -- ipfs-companion https://github.com/ipfs-shipyard/ipfs-companion.git
- stage: test
name: external - npm-on-ipfs
script:
- npm run test:external -- npm-on-ipfs https://github.com/ipfs-shipyard/npm-on-ipfs.git
- stage: test
name: external - ipfs-pubsub-room
script:
- npm run test:external -- ipfs-pubsub-room https://github.com/ipfs-shipyard/ipfs-pubsub-room.git --branch upgrade-to-latest-js-ipfs-rc
- stage: test
name: external - peer-base
script:
- npm run test:external -- peer-base https://github.com/achingbrain/peer-base.git --branch upgrade-to-latest-ipfs-rc
- stage: test
name: external - service-worker-gateway
script:
- npm run test:external -- service-worker-gateway https://github.com/ipfs-shipyard/service-worker-gateway.git
- stage: test
name: external - orbit-db
script:
- npm run test:external -- orbit-db https://github.com/orbitdb/orbit-db.git
- stage: test
name: external - ipfs-log
script:
- npm run test:external -- ipfs-log https://github.com/orbitdb/ipfs-log.git
- stage: test
name: external - sidetree
script:
- npm run test:external -- sidetree https://github.com/decentralized-identity/sidetree.git
- stage: test
name: example - browser-add-readable-stream
script:
- cd examples
- npm install
- npm run test -- browser-add-readable-stream
- stage: test
name: example - browser-browserify
script:
- cd examples
- npm install
- npm run test -- browser-browserify
- stage: test
name: example - browser-create-react-app
script:
- cd examples
- npm install
- npm run test -- browser-create-react-app
- stage: test
name: example - browser-mfs
script:
- cd examples
- npm install
- npm run test -- browser-mfs
- stage: test
name: example - browser-parceljs
script:
- cd examples
- npm install
- npm run test -- browser-parceljs
- stage: test
name: example - browser-readablestream
script:
- cd examples
- npm install
- npm run test -- browser-readablestream
- stage: test
name: example - browser-script-tag
script:
- cd examples
- npm install
- npm run test -- browser-script-tag
- stage: test
name: example - browser-video-streaming
script:
- cd examples
- npm install
- npm run test -- browser-video-streaming
- stage: test
name: example - browser-vue
script:
- cd examples
- npm install
- npm run test -- browser-vue
- stage: test
name: example - browser-webpack
script:
- cd examples
- npm install
- npm run test -- browser-webpack
- stage: test
name: example - circuit-relaying
script:
- cd examples
- npm install
- npm run test -- circuit-relaying
- stage: test
name: example - custom-ipfs-repo
script:
- cd examples
- npm install
- npm run test -- custom-ipfs-repo
- stage: test
name: example - custom-libp2p
script:
- cd examples
- npm install
- npm run test -- custom-libp2p
- stage: test
name: example - exchange-files-in-browser
script:
- cd examples
- npm install
- npm run test -- exchange-files-in-browser
- stage: test
name: example - explore-ethereum-blockchain
script:
- cd examples
- npm install
- npm run test -- explore-ethereum-blockchain
- stage: test
name: example - ipfs-101
script:
- cd examples
- npm install
- npm run test -- ipfs-101
- stage: test
name: example - running-multiple-nodes
script:
- cd examples
- npm install
- npm run test -- running-multiple-nodes
- stage: test
name: example - traverse-ipld-graphs
script:
- cd examples
- npm install
- npm run test -- traverse-ipld-graphs
- stage: tag
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: update-last-successful-build
script:
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git remote set-url origin https://$TRAVIS_GITHUB_USER:$TRAVIS_GITHUB_TOKEN@github.com/ipfs/js-ipfs.git
- npx aegir update-last-successful-build
notifications:
email: false