Skip to content

Commit 23f49f2

Browse files
authored
chore: move to travis (#190)
* chore: use travis * chore: fix dependency check * chore: add gitattributes * chore: force line ending on test-repo * chore: bump aegir * chore: force LF
1 parent 01a4737 commit 23f49f2

9 files changed

+51
-11
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
test/test-repo/** text eol=lf

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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
25+
- npm run lint
26+
27+
- stage: test
28+
name: chrome
29+
addons:
30+
chrome: stable
31+
script: npx aegir test -t browser
32+
33+
- stage: test
34+
name: firefox
35+
addons:
36+
firefox: latest
37+
script: npx aegir test -t browser -- --browsers FirefoxHeadless
38+
39+
notifications:
40+
email: false
41+

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
55
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
66
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
7-
[![Build Status](https://travis-ci.org/ipfs/js-ipfs-repo.svg)](https://travis-ci.org/ipfs/js-ipfs-repo) [![Circle CI](https://circleci.com/gh/ipfs/js-ipfs-repo.svg?style=svg)](https://circleci.com/gh/ipfs/js-ipfs-repo)
8-
[![Coverage Status](https://coveralls.io/repos/github/ipfs/js-ipfs-repo/badge.svg?branch=master)](https://coveralls.io/github/ipfs/js-ipfs-repo?branch=master) [![Dependency Status](https://david-dm.org/diasdavid/js-peer-id.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-repo)
7+
[![Travis CI](https://flat.badgen.net/travis/ipfs/js-ipfs-repo)](https://travis-ci.com/ipfs/js-ipfs-repo)
8+
[![codecov](https://codecov.io/gh/ipfs/js-ipfs-repo/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs/js-ipfs-repo) [![Dependency Status](https://david-dm.org/diasdavid/js-peer-id.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-repo)
99
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
10-
![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)
11-
![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)
10+
![](https://img.shields.io/badge/npm-%3E%3D6.0.0-orange.svg?style=flat-square)
11+
![](https://img.shields.io/badge/Node.js-%3E%3D10.0.0-orange.svg?style=flat-square)
1212

1313
> Implementation of the IPFS repo spec (https://github.com/ipfs/specs/tree/master/repo) in JavaScript
1414

ci/Jenkinsfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"npm": ">=3.0.0"
3939
},
4040
"devDependencies": {
41-
"aegir": "^17.1.1",
41+
"aegir": "^18.1.0",
4242
"chai": "^4.2.0",
4343
"dirty-chai": "^2.0.1",
4444
"lodash": "^4.17.11",

src/api-addr.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

33
const Key = require('interface-datastore').Key
4-
const Buffer = require('safe-buffer').Buffer
54

65
const apiFile = new Key('api')
76

src/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const waterfall = require('async/waterfall')
66
const _get = require('lodash.get')
77
const _set = require('lodash.set')
88
const _has = require('lodash.has')
9-
const Buffer = require('safe-buffer').Buffer
109

1110
const configKey = new Key('config')
1211

test/blockstore-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const each = require('async/each')
1313
const map = require('async/map')
1414
const _ = require('lodash')
1515
const multihashing = require('multihashing-async')
16-
const Buffer = require('safe-buffer').Buffer
1716

1817
module.exports = (repo) => {
1918
describe('blockstore', () => {

test/test-repo/blocks/7J/CIQKKLBWAIBQZOIS5X7E32LQAL6236OUKZTMHPQSFIXPWXNZHQOV7JQ.data

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
��
2+
3+
�
34
IPFS -- Inter-Planetary File system
45

56
IPFS is a global, versioned, peer-to-peer filesystem. It combines good ideas
@@ -52,4 +53,4 @@ IPFS has a name service:
5253
- serves to build trust chains
5354
- compatible with other NSes
5455
- can map DNS, .onion, .bit, etc to IPNS
55-
�
56+
�

0 commit comments

Comments
 (0)