1
1
language : node_js
2
+ dist : bionic
2
3
3
4
services :
4
5
- xvfb
31
32
addons :
32
33
apt :
33
34
packages :
34
- # Fixes error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
35
- # https://github.com/electron/electron/issues/1518
36
- - libgconf-2-4
37
- # Ensure chrome is the latest version
38
- # https://stackoverflow.com/questions/57903415/travis-ci-chrome-62-instead-of-77
39
- - dpkg
35
+ # These are required to run webkit
36
+ - libwoff1
37
+ - libopus0
38
+ - libwebp6
39
+ - libwebpdemux2
40
+ - libenchant1c2a
41
+ - libgudev-1.0-0
42
+ - libsecret-1-0
43
+ - libhyphen0
44
+ - libgdk-pixbuf2.0-0
45
+ - libegl1
46
+ - libgles2
47
+ - libevent-2.1-6
48
+ - libnotify4
49
+ - libxslt1.1
50
+ - libvpx5
51
+ # gstreamer and plugins to support video playback in WebKit.
52
+ - gstreamer1.0-gl
53
+ - gstreamer1.0-plugins-base
54
+ - gstreamer1.0-plugins-good
55
+ - gstreamer1.0-plugins-bad
56
+ # This is required to run chromium
57
+ - libgbm1
40
58
chrome : stable
41
- firefox : latest
42
59
43
60
before_install :
44
61
# prevents windows error: npm ERR! ... git-sh-setup: file not found
45
62
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
46
63
# only run jobs in packages that have changed since master in PR builds
47
64
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export RUN_SINCE='--since master' ; fi
48
65
# modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source
49
- - npm install -g node-pre-gyp
66
+ - npm install -g @mapbox/ node-pre-gyp
50
67
51
68
script :
52
- - npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail
69
+ - npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail -- --exit # TODO remove --exit https://mochajs.org/#-exit
53
70
54
71
jobs :
55
72
allow_failures :
@@ -91,12 +108,12 @@ jobs:
91
108
- stage : test
92
109
name : firefox
93
110
script :
94
- - npm run test:browser -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless
111
+ - npm run test:browser -- $RUN_SINCE -- -- --bail -- --browser firefox
95
112
96
113
- stage : test
97
114
name : firefox webworker
98
115
script :
99
- - npm run test:webworker -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless --timeout 60000
116
+ - npm run test:webworker -- $RUN_SINCE -- -- --bail --timeout 60000 -- --browser firefox
100
117
101
118
- stage : test
102
119
name : electron-main
@@ -131,7 +148,7 @@ jobs:
131
148
- stage : test
132
149
name : js-ipfs interface tests - node
133
150
script :
134
- - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t node
151
+ - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit
135
152
136
153
- stage : test
137
154
name : js-ipfs interface tests - chrome
@@ -146,12 +163,12 @@ jobs:
146
163
- stage : test
147
164
name : js-ipfs interface tests - firefox
148
165
script :
149
- - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
166
+ - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox
150
167
151
168
- stage : test
152
169
name : js-ipfs interface tests - firefox webworker
153
170
script :
154
- - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
171
+ - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox
155
172
156
173
- stage : test
157
174
name : js-ipfs interface tests - electron main
@@ -166,7 +183,7 @@ jobs:
166
183
- stage : test
167
184
name : js-ipfs interface tests - ipfs-client - node
168
185
script :
169
- - npm run test:interface:client -- $RUN_SINCE -- -- --bail -t node
186
+ - npm run test:interface:client -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit
170
187
171
188
- stage : test
172
189
name : js-ipfs interface tests - ipfs-client - chrome
@@ -181,12 +198,12 @@ jobs:
181
198
- stage : test
182
199
name : js-ipfs interface tests - ipfs-client - firefox
183
200
script :
184
- - npm run test:interface:client -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
201
+ - npm run test:interface:client -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox
185
202
186
203
- stage : test
187
204
name : js-ipfs interface tests - ipfs-client - firefox webworker
188
205
script :
189
- - npm run test:interface:client -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
206
+ - npm run test:interface:client -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox
190
207
191
208
- stage : test
192
209
name : js-ipfs interface tests - ipfs-client - electron main
@@ -201,7 +218,7 @@ jobs:
201
218
- stage : test
202
219
name : http-api-client interface tests vs go-ipfs - node
203
220
script :
204
- - npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t node
221
+ - npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit
205
222
206
223
- stage : test
207
224
name : http-api-client interface tests vs go-ipfs - chrome
@@ -216,17 +233,17 @@ jobs:
216
233
- stage : test
217
234
name : http-api-client interface tests vs go-ipfs - firefox
218
235
script :
219
- - npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
236
+ - npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox
220
237
221
238
- stage : test
222
239
name : http-api-client interface tests vs go-ipfs - firefox webworker
223
240
script :
224
- - npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
241
+ - npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox
225
242
226
243
- stage : test
227
244
name : http-api-client interface tests vs js-ipfs - node
228
245
script :
229
- - npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t node
246
+ - npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit
230
247
231
248
- stage : test
232
249
name : http-api-client interface tests vs js-ipfs - chrome
@@ -241,12 +258,12 @@ jobs:
241
258
- stage : test
242
259
name : http-api-client interface tests vs js-ipfs - firefox
243
260
script :
244
- - npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
261
+ - npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser --browser firefox
245
262
246
263
- stage : test
247
264
name : http-api-client interface tests vs js-ipfs - firefox webworker
248
265
script :
249
- - npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
266
+ - npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox
250
267
251
268
- stage : test
252
269
name : http-api-client interface tests vs js-ipfs - electron main
@@ -266,7 +283,7 @@ jobs:
266
283
- stage : test
267
284
name : ipfs-message-port-client interface tests - firefox
268
285
script :
269
- - npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
286
+ - npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox
270
287
271
288
- stage : test
272
289
name : examples
0 commit comments