11language : node_js
2+ dist : bionic
23
34services :
45 - xvfb
3132addons :
3233 apt :
3334 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
4058 chrome : stable
41- firefox : latest
4259
4360before_install :
4461 # prevents windows error: npm ERR! ... git-sh-setup: file not found
4562 - if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
4663 # only run jobs in packages that have changed since master in PR builds
4764 - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export RUN_SINCE='--since master' ; fi
4865 # 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
5067
5168script :
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
5370
5471jobs :
5572 allow_failures :
@@ -91,12 +108,12 @@ jobs:
91108 - stage : test
92109 name : firefox
93110 script :
94- - npm run test:browser -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless
111+ - npm run test:browser -- $RUN_SINCE -- -- --bail -- --browser firefox
95112
96113 - stage : test
97114 name : firefox webworker
98115 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
100117
101118 - stage : test
102119 name : electron-main
@@ -131,7 +148,7 @@ jobs:
131148 - stage : test
132149 name : js-ipfs interface tests - node
133150 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
135152
136153 - stage : test
137154 name : js-ipfs interface tests - chrome
@@ -146,12 +163,12 @@ jobs:
146163 - stage : test
147164 name : js-ipfs interface tests - firefox
148165 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
150167
151168 - stage : test
152169 name : js-ipfs interface tests - firefox webworker
153170 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
155172
156173 - stage : test
157174 name : js-ipfs interface tests - electron main
@@ -166,7 +183,7 @@ jobs:
166183 - stage : test
167184 name : js-ipfs interface tests - ipfs-client - node
168185 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
170187
171188 - stage : test
172189 name : js-ipfs interface tests - ipfs-client - chrome
@@ -181,12 +198,12 @@ jobs:
181198 - stage : test
182199 name : js-ipfs interface tests - ipfs-client - firefox
183200 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
185202
186203 - stage : test
187204 name : js-ipfs interface tests - ipfs-client - firefox webworker
188205 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
190207
191208 - stage : test
192209 name : js-ipfs interface tests - ipfs-client - electron main
@@ -201,7 +218,7 @@ jobs:
201218 - stage : test
202219 name : http-api-client interface tests vs go-ipfs - node
203220 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
205222
206223 - stage : test
207224 name : http-api-client interface tests vs go-ipfs - chrome
@@ -216,17 +233,17 @@ jobs:
216233 - stage : test
217234 name : http-api-client interface tests vs go-ipfs - firefox
218235 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
220237
221238 - stage : test
222239 name : http-api-client interface tests vs go-ipfs - firefox webworker
223240 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
225242
226243 - stage : test
227244 name : http-api-client interface tests vs js-ipfs - node
228245 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
230247
231248 - stage : test
232249 name : http-api-client interface tests vs js-ipfs - chrome
@@ -241,12 +258,12 @@ jobs:
241258 - stage : test
242259 name : http-api-client interface tests vs js-ipfs - firefox
243260 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
245262
246263 - stage : test
247264 name : http-api-client interface tests vs js-ipfs - firefox webworker
248265 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
250267
251268 - stage : test
252269 name : http-api-client interface tests vs js-ipfs - electron main
@@ -266,7 +283,7 @@ jobs:
266283 - stage : test
267284 name : ipfs-message-port-client interface tests - firefox
268285 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
270287
271288 - stage : test
272289 name : examples
0 commit comments