@@ -4,6 +4,11 @@ language: node_js
44# cache: npm
55cache : false
66
7+ branches :
8+ only :
9+ - master
10+ - /^release\/.*$/
11+
712stages :
813 - check
914 - test
2328 # https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336
2429 - YARN_GPG=no
2530
31+ addons :
32+ apt :
33+ 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+
2638script : npx nyc -s npx aegir test -t node --timeout 10000 --bail
2739after_success :
2840 - npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
@@ -40,36 +52,91 @@ jobs:
4052 addons :
4153 chrome : stable
4254 script :
43- - npx aegir test -t browser
44- - npx aegir test -t webworker
55+ - npx aegir test -t browser -t webworker
4556
4657 - stage : test
4758 name : firefox
4859 addons :
4960 firefox : latest
5061 script :
51- - npx aegir test -t browser -- --browsers FirefoxHeadless
52- - npx aegir test -t webworker -- --browsers FirefoxHeadless
62+ - npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless
5363
5464 - stage : test
5565 name : electron-main
66+ os : osx
5667 script :
57- - xvfb-run npx aegir test -t electron-main -- --bail --timeout 10000
68+ - npx aegir test -t electron-main --bail --timeout 10000
5869
5970 - stage : test
6071 name : electron-renderer
72+ os : osx
73+ script :
74+ - npx aegir test -t electron-renderer --bail --timeout 10000
75+
76+ - stage : test
77+ name : interop node
78+ script :
79+ - cd node_modules/ipfs-interop
80+ - IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t node --bail
81+
82+ - stage : test
83+ name : interop browser
84+ script :
85+ - cd node_modules/ipfs-interop
86+ - IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t browser --bail
87+
88+ - stage : test
89+ name : interop electron-main
90+ os : osx
91+ script :
92+ - cd node_modules/ipfs-interop
93+ - IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t electron-main -f ./test/node.js --bail --timeout 10000
94+
95+ - stage : test
96+ name : interop electron-renderer
97+ os : osx
98+ script :
99+ - cd node_modules/ipfs-interop
100+ - IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t electron-renderer -f ./test/browser.js --bail --timeout 10000
101+
102+ - stage : test
103+ if : branch =~ /^release\/.*$/
104+ name : ipfs-companion
105+ script :
106+ - npm run test:external -- ipfs-companion https://github.com/ipfs-shipyard/ipfs-companion.git
107+
108+ - stage : test
109+ if : branch =~ /^release\/.*$/
110+ name : npm-on-ipfs
111+ script :
112+ - npm run test:external -- npm-on-ipfs https://github.com/ipfs-shipyard/npm-on-ipfs.git
113+
114+ - stage : test
115+ if : branch =~ /^release\/.*$/
116+ name : ipfs-pubsub-room
117+ script :
118+ - npm run test:external -- ipfs-pubsub-room https://github.com/ipfs-shipyard/ipfs-pubsub-room.git
119+
120+ - stage : test
121+ if : branch =~ /^release\/.*$/
122+ name : peer-base
61123 script :
62- - xvfb- run npx aegir test -t electron-renderer -- --bail --timeout 10000
124+ - npm run test:external -- peer-base https://github.com/peer-base/peer-base.git
63125
64126 - stage : test
65- name : interop
127+ if : branch =~ /^release\/.*$/
128+ name : service-worker-gateway
66129 script :
67- - npm run test:interop
130+ - npm run test:external -- service-worker-gateway https://github.com/ipfs-shipyard/service-worker-gateway.git
68131
69132 - stage : tag
133+ # only run on changes to master
70134 if : branch = master AND type = push AND fork = false
71135 name : update-last-successful-build
72136 script :
137+ -
git config --global user.email "[email protected] " 138+ - git config --global user.name "Travis CI"
139+ -
git remote set-url origin https://$TRAVIS_GITHUB_USER:[email protected] /ipfs/js-ipfs.git 73140 - npx aegir update-last-successful-build
74141
75142notifications :
0 commit comments