Skip to content

Commit

Permalink
add travis and coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
jprichardson committed May 30, 2014
1 parent e2e079f commit 0cda1d2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Expand Up @@ -2,4 +2,5 @@
test/
.DS_Store
component.json
bower.json
bower.json
coverage/
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
language: node_js
before_install:
- "npm install npm -g"
node_js:
- 0.11
- 0.10
env:
- TEST_SUITE=unit
- TEST_SUITE=coveralls
script: "npm run-script $TEST_SUITE"
11 changes: 8 additions & 3 deletions package.json
Expand Up @@ -11,17 +11,22 @@
"curve"
],
"devDependencies": {
"mocha": "1.*",
"mocha": "^1.20.0",
"mochify": "~0.4.2",
"terst": "~0.1.0"
"terst": "~0.1.0",
"coveralls": "^2.10.0",
"mocha-lcov-reporter": "0.0.1",
"istanbul": "^0.2.10"
},
"repository": {
"url": "https://github.com/cryptocoinjs/ecurve",
"type": "git"
},
"main": "./lib/ecurve.js",
"scripts": {
"test": "mocha"
"unit": "./node_modules/.bin/mocha",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",
"coveralls": "npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info"
},
"dependencies": {
"bigi": "^1.1.0"
Expand Down

0 comments on commit 0cda1d2

Please sign in to comment.