Skip to content

Commit

Permalink
add node v0.12 to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Feb 15, 2015
1 parent 3bdacf6 commit 650074b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
16 changes: 6 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
language: node_js
sudo: false
node_js:
- "0.10"
- "0.11"
matrix:
allow_failures:
- node_js: "0.11"
- "0.10"
- "0.12"
services:
- mongodb
before_script:
- sleep 10
- echo mongo mongo_travis
script:
- make travis
before_script: "sleep 10"
script: "make travis"
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls"
17 changes: 6 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ MONGO_SETTINGS=MONGO_CONNECTION=${MONGO_CONNECTION} \

all: test

travis-cov:
NODE_ENV=test \
${MONGO_SETTINGS} \
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -vvv -R tap ${TESTS} && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && \
rm -rf ./coverage

.PHONY: test
test:
${MONGO_SETTINGS} \
mocha --verbose -vvv -R tap ${TESTS}
mocha --verbose -vvv -R tap ${TESTS}

travis: test travis-cov

.PHONY: test
travis:
NODE_ENV=test \
${MONGO_SETTINGS} \
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -vvv -R tap ${TESTS}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"postinstall": "node node_modules/bower/bin/bower install"
},
"engines": {
"node": "~0.10.0"
"node": "0.10.x"
},
"dependencies": {
"body-parser": "^1.4.3",
Expand All @@ -46,7 +46,6 @@
"git-rev": "git://github.com/bewest/git-rev.git"
},
"devDependencies": {
"coveralls": "~2.11.2",
"istanbul": "~0.3.5",
"mocha": "~1.20.1",
"should": "~4.0.4",
Expand Down

0 comments on commit 650074b

Please sign in to comment.