Skip to content

Commit

Permalink
add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
chunpu committed Mar 1, 2015
1 parent 3844568 commit b531480
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
node_modules
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
branches:
only:
- gh-pages
after_script: npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "min-bench",
"version": "1.0.0",
"version": "1.0.1",
"description": "simple benchmark for javascript code",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"readme": "pretty-readme > readme.md"
"test": "npm run cov",
"readme": "pretty-readme > readme.md",
"cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test"
},
"repository": {
"type": "git",
Expand All @@ -20,5 +21,9 @@
"bugs": {
"url": "https://github.com/chunpu/min-bench/issues"
},
"homepage": "https://github.com/chunpu/min-bench"
"homepage": "https://github.com/chunpu/min-bench",
"devDependencies": {
"istanbul": "^0.3.6",
"mocha": "^2.1.0"
}
}
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
min-bench
===

[![Build status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependency Status][david-image]][david-url]
Expand Down Expand Up @@ -46,5 +47,7 @@ License

[![License][license-image]][license-url]

[travis-image]: https://img.shields.io/travis/chunpu/min-bench.svg?style=flat-square
[travis-url]: https://travis-ci.org/chunpu/min-bench
[license-image]: http://img.shields.io/npm/l/min-bench.svg?style=flat-square
[license-url]: #

0 comments on commit b531480

Please sign in to comment.