Skip to content

Commit

Permalink
improve test enviroment and integrate with codeclimate reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
flpms committed Jan 27, 2019
1 parent 2ad729b commit 7ee9465
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
language: node_js
node_js:
- "10.15"
- "10.0"
- "8.15.0"
- "8.0.0"
- "7.0"
- "6.16.0"
- "6.0"
- "5.0"
- "4.9.1"
- "4.0"
- "4.1"
- "iojs"
env:
global:
- CC_TEST_REPORTER_ID=18b4941291c81f7002e4ec5d7d38c9b3e31cf89f2393165e6bcf647c4a15b062
services:
- mongo mydb_test --eval 'db.addUser("travis", "test");'
- sleep 15
Expand All @@ -13,3 +25,11 @@ addons:
- mongodb-3.0-precise
packages:
- mongodb-org-server
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- npm test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit 7ee9465

Please sign in to comment.