Skip to content

Commit

Permalink
travis: run with 0.10, 0.11, 0.12, 4, 5
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jan 28, 2016
1 parent 628eb61 commit 384aa8d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
25 changes: 17 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
sudo: false
os:
- linux
language: node_js
node_js:
- '0.12'
- '4'
branches:
only:
- master
- "0.10"
- "0.11"
- "0.12"
- "4"
- "5"
env:
global:
secure: ewqsRnX7z3+g6q+mM6peRPhuTlTlkJIRmVG/Ya9AcDXEb7as49KDTdqfMcOu7+FxF50ehqla+TRRCLRPOcVkWqs72OVUXEsjRASp9jQwpQGl+g/vZhyTMwlM2ENEkyiFQtobI1hYKgVW1ogftkc6vm7ywvoyTrFp/leVJBrTuHk=
script:
- npm test --coverage
- npm run-script coveralls
matrix:
- TEST_SUITE=unit
matrix:
include:
- node_js: "4"
env: TEST_SUITE=lint
- node_js: "4"
env: TEST_SUITE=coveralls
script: npm run $TEST_SUITE
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
"lib"
],
"scripts": {
"test": "make lint && istanbul test _mocha --reporter=spec test/*-test.js",
"coveralls": "cat ./coverage/lcov.info | coveralls"
"coverage": "npm run unit --coverage",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls",
"lint": "make lint",
"test": "npm run lint && npm run unit",
"unit": "istanbul test _mocha --reporter=spec test/*-test.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 384aa8d

Please sign in to comment.