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

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"