diff options
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; |
