Skip to content

Commit 9baae15

Browse files
committed
Merge pull request libp2p#36 from dignifiedquire/cover
chore: Enable auto coverage reporting
2 parents b0484c6 + b87524f commit 9baae15

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ before_install:
1111
script:
1212
- npm run lint
1313
- npm test
14+
- npm run coverage
1415

1516
addons:
1617
firefox: 'latest'
1718

1819
before_script:
1920
- export DISPLAY=:99.0
2021
- sh -e /etc/init.d/xvfb start
22+
23+
after_success:
24+
- npm run coverage-publish

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
libp2p-swarm JavaScript implementation
22
======================================
33

4-
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
5-
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
4+
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
5+
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
66
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
77
[![Build Status](https://img.shields.io/travis/diasdavid/js-libp2p-swarm/master.svg?style=flat-square)](https://travis-ci.org/diasdavid/js-libp2p-swarm)
8-
![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square)
8+
[![Coverage Status](https://coveralls.io/repos/github/diasdavid/js-libp2p-swarm/badge.svg?branch=master)](https://coveralls.io/github/diasdavid/js-libp2p-swarm?branch=master)
99
[![Dependency Status](https://david-dm.org/diasdavid/js-libp2p-swarm.svg?style=flat-square)](https://david-dm.org/ipfs/js-libp2p-swarm)
1010
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
1111

@@ -19,7 +19,7 @@ libp2p-swarm is used by libp2p but it can be also used as a standalone module.
1919

2020
# Usage
2121

22-
## Install
22+
## Install
2323

2424
libp2p-swarm is available on npm and so, like any other npm module, just:
2525

@@ -48,7 +48,7 @@ peerInfo is a [PeerInfo](https://github.com/diasdavid/js-peer-info) object that
4848
libp2p-swarm expects transports that implement [interface-transport](https://github.com/diasdavid/abstract-transport). For example [libp2p-tcp](https://github.com/diasdavid/js-libp2p-tcp).
4949

5050
- `key` - the transport identifier
51-
- `transport` -
51+
- `transport` -
5252
- `options`
5353
- `callback`
5454

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"release": "gulp release",
1414
"release-minor": "gulp release --minor",
1515
"release-major": "gulp release --major",
16-
"coverage": "gulp coverage"
16+
"coverage": "gulp coverage",
17+
"coverage-publish": "aegir-coverage publish"
1718
},
1819
"repository": {
1920
"type": "git",
@@ -39,7 +40,7 @@
3940
"bl": "^1.1.2",
4041
"buffer-loader": "0.0.1",
4142
"chai": "^3.5.0",
42-
"aegir": "^2.0.3",
43+
"aegir": "^2.1.0",
4344
"gulp": "^3.9.1",
4445
"istanbul": "^0.4.2",
4546
"libp2p-multiplex": "^0.2.1",

0 commit comments

Comments
 (0)