Skip to content

Commit

Permalink
Added travis and coveralls + README badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Aug 8, 2014
1 parent 2eae2bb commit 71117c6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "0.10"
before_install: "npm install -g npm && npm cache clean"
script: "npm run-script travis"
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
Create composable extensible styled text in both consoles and
browsers.

[![NPM version](https://badge.fury.io/js/magicpen.png)](http://badge.fury.io/js/magicpen)
[![Build Status](https://travis-ci.org/sunesimonsen/magicpen.png)](https://travis-ci.org/sunesimonsen/magicpen)
[![Coverage Status](https://coveralls.io/repos/sunesimonsen/magicpen/badge.png)](https://coveralls.io/r/sunesimonsen/magicpen)
[![Dependency Status](https://david-dm.org/sunesimonsen/magicpen.png)](https://david-dm.org/sunesimonsen/magicpen)

## Installation

### Node
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
},
"scripts": {
"test": "mocha -R spec",
"travis": "npm test && npm run coverage && <coverage/lcov.info coveralls",
"prepublish": "(echo '/*!' && <LICENSE sed -e's/^/ * /' | sed -e's/\\s+$//' && echo ' */' && browserify -p bundle-collapser/plugin -e lib/MagicPen -s weknowhow.MagicPen) > magicpen.js",
"coverage": "NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot"
"coverage": "NODE_ENV=development istanbul cover _mocha -- --reporter dot"
},
"author": "Sune Simonsen",
"devDependencies": {
"browserify": "^5.9.1",
"bundle-collapser": "^1.1.0",
"coveralls": "^2.11.1",
"del": "^0.1.1",
"istanbul": "^0.3.0",
"mocha": "^1.20.1",
Expand Down

0 comments on commit 71117c6

Please sign in to comment.