Skip to content

Commit

Permalink
Add badges, travis and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jul 31, 2018
1 parent 103257e commit cd13f65
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: required
language: node_js

node_js:
- '8'
- '10'

script: npm run coveralls
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pull-buffer-stream

[![Build status](https://travis-ci.org/achingbrain/pull-buffer-stream.svg?branch=master)](https://travis-ci.org/achingbrain/pull-buffer-stream.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/achingbrain/pull-buffer-stream/badge.svg?branch=master)](https://coveralls.io/github/achingbrain/pull-buffer-stream?branch=master)

> Emits streams of buffers
## Install
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const bufferStream = (limit, options = {}) => {

return (error, callback) => {
if (error) {
console.info('how did I get here?', error)

return callback(error)
}

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"description": "Emits streams of buffers",
"main": "index.js",
"scripts": {
"test": "nyc --check-coverage --lines 100 --reporter html ava",
"lint": "standard"
"test": "nyc --check-coverage --lines 100 --reporter html --reporter lcov ava",
"lint": "standard",
"coveralls": "npm test && cat ./coverage/lcov.info | coveralls"
},
"author": "Alex Potsides <alex@achingbrain.net>",
"license": "ISC",
"devDependencies": {
"ava": "^0.25.0",
"coveralls": "^3.0.2",
"nyc": "^12.0.2",
"pull-stream": "^3.6.8",
"standard": "^11.0.1"
Expand Down

0 comments on commit cd13f65

Please sign in to comment.