Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit a846012

Browse files
committed
Merge pull request #5 from ipfs/aegir
refactor: use aegir
2 parents 6f4bc23 + 9181c5a commit a846012

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ build/Release
2424

2525
# Optional REPL history
2626
.node_repl_history
27+
28+
test

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
sudo: false
12
language: node_js
23
node_js:
3-
- '4'
4-
- '5'
4+
- 4
5+
- 5
56

7+
# Make sure we have new NPM.
68
before_install:
7-
- npm i -g npm
8-
# Workaround for a permissions issue with Travis virtual machine images
9+
- npm install -g npm
10+
11+
script:
12+
- npm run lint
13+
- npm test
14+
- npm run coverage
915

1016
addons:
1117
firefox: 'latest'
@@ -14,6 +20,5 @@ before_script:
1420
- export DISPLAY=:99.0
1521
- sh -e /etc/init.d/xvfb start
1622

17-
script:
18-
- npm run lint
19-
- npm test
23+
after_success:
24+
- npm run coverage-publish

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ js-libp2p-ipfs
44
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
55
[[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
66
![Build Status](https://travis-ci.org/ipfs/js-libp2p-ipfs.svg?style=flat-square)](https://travis-ci.org/ipfs/js-libp2p-ipfs)
7-
![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square)
7+
[![Coverage Status](https://coveralls.io/repos/github/ipfs/js-libp2p-ipfs/badge.svg?branch=master)](https://coveralls.io/github/ipfs/js-libp2p-ipfs?branch=master)
88
[![Dependency Status](https://david-dm.org/ipfs/js-libp2p-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/js-libp2p-ipfs)
99
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
1010

circle.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
machine:
22
node:
33
version: stable
4+
5+
dependencies:
6+
pre:
7+
- google-chrome --version
8+
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
9+
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
10+
- sudo apt-get update
11+
- sudo apt-get --only-upgrade install google-chrome-stable
12+
- google-chrome --version

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@
1010
"lint": "aegir-lint",
1111
"release": "aegir-release node",
1212
"release-minor": "aegir-release node --minor",
13-
"release-major": "aegir-release node --major"
13+
"release-major": "aegir-release node --major",
14+
"coverage": "aegir-coverage",
15+
"coverage-publish": "aegir-coverage publish"
1416
},
1517
"repository": {
1618
"type": "git",
1719
"url": "git+https://github.com/ipfs/js-libp2p-ipfs.git"
1820
},
21+
"pre-commit": [
22+
"lint",
23+
"test"
24+
],
1925
"keywords": [
2026
"IPFS"
2127
],
@@ -27,7 +33,7 @@
2733
"homepage": "https://github.com/ipfs/js-libp2p-ipfs#readme",
2834
"devDependencies": {
2935
"chai": "^3.5.0",
30-
"aegir": "^2.0.0",
36+
"aegir": "^2.1.1",
3137
"pre-commit": "^1.1.2"
3238
},
3339
"dependencies": {

0 commit comments

Comments
 (0)