@@ -4,6 +4,11 @@ language: node_js
4
4
# cache: npm
5
5
cache : false
6
6
7
+ branches :
8
+ only :
9
+ - master
10
+ - /^release\/.*$/
11
+
7
12
stages :
8
13
- check
9
14
- test
23
28
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336
24
29
- YARN_GPG=no
25
30
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
+
26
38
script : npx nyc -s npx aegir test -t node --timeout 10000 --bail
27
39
after_success :
28
40
- npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
@@ -40,36 +52,91 @@ jobs:
40
52
addons :
41
53
chrome : stable
42
54
script :
43
- - npx aegir test -t browser
44
- - npx aegir test -t webworker
55
+ - npx aegir test -t browser -t webworker
45
56
46
57
- stage : test
47
58
name : firefox
48
59
addons :
49
60
firefox : latest
50
61
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
53
63
54
64
- stage : test
55
65
name : electron-main
66
+ os : osx
56
67
script :
57
- - xvfb-run npx aegir test -t electron-main -- --bail --timeout 10000
68
+ - npx aegir test -t electron-main --bail --timeout 10000
58
69
59
70
- stage : test
60
71
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
61
123
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
63
125
64
126
- stage : test
65
- name : interop
127
+ if : branch =~ /^release\/.*$/
128
+ name : service-worker-gateway
66
129
script :
67
- - npm run test:interop
130
+ - npm run test:external -- service-worker-gateway https://github.com/ipfs-shipyard/service-worker-gateway.git
68
131
69
132
- stage : tag
133
+ # only run on changes to master
70
134
if : branch = master AND type = push AND fork = false
71
135
name : update-last-successful-build
72
136
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
73
140
- npx aegir update-last-successful-build
74
141
75
142
notifications :
0 commit comments