forked from jdesboeufs/connect-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (23 loc) · 1.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
sudo: required
language: node_js
node_js:
- 0.12
- 4
- 6
services:
- docker
before_script:
- docker run -d -p 27002:27017 mongo:2
- docker run -d -p 27003:27017 mongo:3
- docker ps -a
script:
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then npm run lint; fi;
- npm run transpile
- if [[ $TRAVIS_NODE_VERSION == "0.12" ]]; then MONGODB_URL=mongodb://localhost:27003/connect-mongo-test npm run test-unit-es5; fi;
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then MONGODB_URL=mongodb://localhost:27002/connect-mongo-test npm run cover; fi;
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then MONGODB_URL=mongodb://localhost:27003/connect-mongo-test npm run test-unit; fi;
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then npm install mongodb@1.x; fi;
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then MONGODB_URL=mongodb://localhost:27002/connect-mongo-test npm run test-unit; fi;
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then MONGODB_URL=mongodb://localhost:27003/connect-mongo-test npm run test-unit; fi;
after_script:
- if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then npm install coveralls && cat ./coverage/lcov.info | coveralls; fi;