Add Travis-CI configuration.

This commit is contained in:
Nikita Lutsenko
2016-02-02 20:08:53 -08:00
parent e5140deaed
commit ca2ac2195d
2 changed files with 15 additions and 2 deletions

10
.travis.yml Normal file
View File

@@ -0,0 +1,10 @@
branches:
only:
- master
language: node_js
node_js:
- "4.1"
- "4.2"
env:
- MONGODB_VERSION=3.0.8
after_script: cat ./coverage/coverage-final.json

View File

@@ -23,10 +23,13 @@
},
"devDependencies": {
"istanbul": "^0.4.2",
"jasmine": "^2.3.2"
"jasmine": "^2.3.2",
"mongodb-runner": "^3.1.15"
},
"scripts": {
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources ./node_modules/.bin/jasmine"
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources ./node_modules/.bin/jasmine",
"posttest": "mongodb-runner stop"
},
"engines": {
"node": ">=4.1"