Skip to content

Commit

Permalink
Simplified travis/coveralls setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoung committed May 31, 2015
1 parent fbf1af9 commit d4051f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: node_js
node_js:
- '0.10'
- '0.12'
- '0.10'
- '0.12'
sudo: false
language: node_js
script: npm run-script test-travis
after_script: npm install coveralls@2 && cat ./coverage/lcov.info | coveralls
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Azul.js Query Tracker",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report $(if [ \"$TRAVIS\" ]; then echo lcovonly; else echo html; fi) -- --recursive && if [ \"$TRAVIS\" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi"
"test": "istanbul cover node_modules/.bin/_mocha --report html --",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly --"
},
"files": [
"index.js",
Expand Down Expand Up @@ -40,7 +41,6 @@
"devDependencies": {
"azul": "^0.0.1-alpha.11",
"chai": "^2.3.0",
"coveralls": "^2.11.2",
"istanbul": "^0.3.13",
"mocha": "^2.2.4",
"sinon": "^1.14.1",
Expand Down

0 comments on commit d4051f2

Please sign in to comment.