Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Integrated Coveralls and added Travis and Coveralls badge in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samrith Shankar committed May 27, 2017
1 parent ae90d4d commit ea55a42
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
language: node_js

node_js:
- stable

install:
- npm install

script:
- npm test
- npm run cover

# Send coverage data to Coveralls
after_script: "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Relative Date

[![Build Status](https://travis-ci.org/samrith-s/relative_date.svg?branch=master)](https://travis-ci.org/samrith-s/relative_date) [![Coverage Status](https://coveralls.io/repos/github/samrith-s/relative_date/badge.svg)](https://coveralls.io/github/samrith-s/relative_date)
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A tiny package which, when given a date, displays it with relation to the current day.",
"main": "relative_date.js",
"scripts": {
"test": "mocha -R nyan"
"test": "mocha -R nyan",
"cover": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec test/*"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,6 +41,8 @@
},
"devDependencies": {
"chai": "^4.0.0",
"coveralls": "^2.13.1",
"istanbul": "^0.4.5",
"mocha": "^3.4.2"
}
}

0 comments on commit ea55a42

Please sign in to comment.