Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit e6e749d

Browse files
hugomrdiasAlan Shaw
authored and
Alan Shaw
committed
chore: move to travis-ci.com (#1728)
1 parent 35fd541 commit e6e749d

9 files changed

+58
-13
lines changed

.aegir.js

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = {
2121
included: false
2222
}],
2323
browserNoActivityTimeout: 100 * 1000,
24-
singleRun: true
2524
},
2625
hooks: {
2726
node: {

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto
2+
test/** text eol=lf
3+
src/init-files/** text eol=lf
4+
5+
*.data binary
6+
*.png binary
7+
*.jpg binary

.travis.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
language: node_js
2+
cache: npm
3+
stages:
4+
- check
5+
- test
6+
- cov
7+
8+
node_js:
9+
- '10'
10+
11+
os:
12+
- linux
13+
- osx
14+
- windows
15+
16+
script: npx nyc -s npm run test:node -- --bail
17+
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
18+
19+
jobs:
20+
include:
21+
- stage: check
22+
script:
23+
- npx aegir commitlint --travis
24+
- npx aegir dep-check -- -i wrtc -i electron-webrtc
25+
- npm run lint
26+
27+
- stage: test
28+
name: chrome
29+
addons:
30+
chrome: stable
31+
script:
32+
- npx aegir test -t browser
33+
- npx aegir test -t webworker
34+
35+
- stage: test
36+
name: firefox
37+
addons:
38+
firefox: latest
39+
script:
40+
- npx aegir test -t browser -- --browsers FirefoxHeadless
41+
- npx aegir test -t webworker -- --browsers FirefoxHeadless
42+
43+
notifications:
44+
email: false

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</p>
1616

1717
<p align="center">
18-
<a href="https://ci.ipfs.team/job/ipfs/job/js-ipfs/job/master/"><img src="https://ci.ipfs.team/buildStatus/icon?job=ipfs/js-ipfs/master" /></a>
18+
<a href="https://travis-ci.com/ipfs/aegir"><img src="https://flat.badgen.net/travis/ipfs/js-ipfs" /></a>
1919
<a href="https://codecov.io/gh/ipfs/js-ipfs"><img src="https://codecov.io/gh/ipfs/js-ipfs/branch/master/graph/badge.svg" /></a>
2020
<a href="https://david-dm.org/ipfs/js-ipfs"><img src="https://david-dm.org/ipfs/js-ipfs.svg?style=flat" /></a>
2121
<a href="https://github.com/feross/standard"><img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat"></a>

ci/Jenkinsfile

-2
This file was deleted.

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@
4444
"benchmark:browser": "echo \"Error: no benchmarks yet\" && exit 1",
4545
"release": "aegir release -t node -t browser",
4646
"release-minor": "aegir release --type minor -t node -t browser",
47-
"release-major": "aegir release --type major -t node -t browser",
48-
"coverage": "aegir coverage",
49-
"coverage-publish": "aegir-coverage publish",
50-
"dep-check": "npx dependency-check package.json './test/**/*.js' './src/**/*.js'"
47+
"release-major": "aegir release --type major -t node -t browser"
5148
},
5249
"repository": {
5350
"type": "git",
@@ -62,7 +59,7 @@
6259
},
6360
"homepage": "https://github.com/ipfs/js-ipfs#readme",
6461
"devDependencies": {
65-
"aegir": "^18.0.3",
62+
"aegir": "^18.1.0",
6663
"chai": "^4.2.0",
6764
"delay": "^4.1.0",
6865
"detect-node": "^2.0.4",

test/cli/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('config', () => runOnAndOff((thing) => {
6969

7070
it('call config with no arguments', () => {
7171
return ipfs('config')
72-
.then(out => expect(out).to.include('bin.js config <key> [value]'))
72+
.then(out => expect(out).to.include('Not enough non-option arguments: got 0, need at least 1'))
7373
})
7474
})
7575

test/cli/files.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ describe('files', () => runOnAndOff((thing) => {
233233
return ipfs('add test/fixtures/greater-than-default-max-chunk-size --cid-version=1')
234234
.then((out) => {
235235
expect(out)
236-
.to.eql('added zdj7WbyyZoWVifUHUe58SNS184PpN8qAuCP6HpAY91iA8CveT greater-than-default-max-chunk-size\n')
236+
.to.eql('added zdj7We8b7taMubqinMgnZ9HFUiv17bm5zjJkYnqpfxXhqx5sY greater-than-default-max-chunk-size\n')
237237
})
238238
})
239239

@@ -253,7 +253,7 @@ describe('files', () => runOnAndOff((thing) => {
253253
return ipfs(`add test/fixtures/greater-than-default-max-chunk-size --cid-version=1 --raw-leaves=false`)
254254
.then((out) => {
255255
expect(out)
256-
.to.eql('added zdj7WmYojH6vMkDQFNDNwUy2ZawrggqAhS6jjRJwb1C4KXZni greater-than-default-max-chunk-size\n')
256+
.to.eql('added zdj7WW4sSVxNKLJXQSzy3RD7msG3SS4WgdGEdJzDZ7swYv65p greater-than-default-max-chunk-size\n')
257257
})
258258
})
259259

@@ -273,7 +273,7 @@ describe('files', () => runOnAndOff((thing) => {
273273
return ipfs('add test/fixtures/greater-than-default-max-chunk-size --cid-version=1 --raw-leaves=true')
274274
.then((out) => {
275275
expect(out)
276-
.to.eql('added zdj7WbyyZoWVifUHUe58SNS184PpN8qAuCP6HpAY91iA8CveT greater-than-default-max-chunk-size\n')
276+
.to.eql('added zdj7We8b7taMubqinMgnZ9HFUiv17bm5zjJkYnqpfxXhqx5sY greater-than-default-max-chunk-size\n')
277277
})
278278
})
279279

Binary file not shown.

0 commit comments

Comments
 (0)