Skip to content

Commit 969b24e

Browse files
committed
Add Travis-CI configuration.
1 parent 4a78765 commit 969b24e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
branches:
2+
only:
3+
- master
4+
language: node_js
5+
node_js:
6+
- "4.1"
7+
- "4.2"
8+
env:
9+
- MONGODB_VERSION=3.0.8
10+
after_script: cat ./coverage/coverage-final.json

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
},
2424
"devDependencies": {
2525
"istanbul": "^0.4.2",
26-
"jasmine": "^2.3.2"
26+
"jasmine": "^2.3.2",
27+
"mongodb-runner": "^3.1.15"
2728
},
2829
"scripts": {
29-
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources ./node_modules/.bin/jasmine"
30+
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
31+
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources ./node_modules/.bin/jasmine",
32+
"posttest": "mongodb-runner stop"
3033
},
3134
"engines": {
3235
"node": ">=4.1"

0 commit comments

Comments
 (0)