Skip to content

Commit

Permalink
Integrate coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
yefremov committed Feb 4, 2017
1 parent 82323db commit 0d7169a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ node_js:
- "6.1"
- "5.11"
- "iojs"
script:
- "npm run-script test-cov"
after_success:
- "npm run-script report-cov"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Algorithms with JavaScript

[![Build Status](https://travis-ci.org/yefremov/algorithms-with-javascript.svg?branch=master)](https://travis-ci.org/yefremov/algorithms-with-javascript)
[![Coverage Status](https://coveralls.io/repos/github/yefremov/algorithms-with-javascript/badge.svg?branch=master)](https://coveralls.io/github/yefremov/algorithms-with-javascript?branch=master)

This is a collection of different algorithms, written in JavaScript.
The purpose of this library is to define basic algorithms in a concise,
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Common programming algorithms written with JavaScript",
"main": "index.js",
"scripts": {
"test": "tape lib/**/*-test.js | tap-spec"
"test": "tape lib/**/*-test.js | tap-spec",
"test-cov": "nyc npm test",
"report-cov": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -17,6 +19,9 @@
},
"homepage": "https://github.com/yefremov/algorithms-with-javascript#readme",
"devDependencies": {
"coveralls": "^2.11.15",
"nyc": "^10.1.2",
"tap-dot": "^1.0.5",
"tap-spec": "^4.1.1",
"tape": "^4.6.3"
}
Expand Down

0 comments on commit 0d7169a

Please sign in to comment.