diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-28 02:20:52 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-28 02:20:52 +0000 |
| commit | 4cff38c8f7b65dab1fd72ea835ea7288327d1056 (patch) | |
| tree | ac93acd69e77eef1e352af953d56238d70ea9c5d /node_modules/connect-mongo/.travis.yml | |
| parent | e11dd98c9a55cd1742d221e3b1ea90d31e240fa8 (diff) | |
Fixed admin bug
Diffstat (limited to 'node_modules/connect-mongo/.travis.yml')
| -rw-r--r-- | node_modules/connect-mongo/.travis.yml | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/node_modules/connect-mongo/.travis.yml b/node_modules/connect-mongo/.travis.yml index 6b327a7..5140e49 100644 --- a/node_modules/connect-mongo/.travis.yml +++ b/node_modules/connect-mongo/.travis.yml @@ -1,18 +1,29 @@ +sudo: required + language: node_js node_js: - 0.12 - 4 - - 5 - 6 -services: mongodb +services: + - docker -sudo: false +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 test-es5; fi; - - if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then npm run test; fi; + - 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; + - if [[ $TRAVIS_NODE_VERSION != "0.12" ]]; then npm install coveralls && cat ./coverage/lcov.info | coveralls; fi; |
