Skip to content

Commit

Permalink
build(travis): update codeclimate reporting flow
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 14, 2018
1 parent dae18fd commit f1b460d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ before_install:
- npm install -g mocha
- npm install -g greenkeeper-lockfile

before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
before_script:
- greenkeeper-lockfile-update
- 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

after_script:
- greenkeeper-lockfile-upload
- ./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

install:
- npm install
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"author": "Anton Golub <[email protected]>",
"engines": {
"node": ">=9.4.0 <11.0",
"npm": ">=5.6 <7.0"
"node": ">=9.4.0",
"npm": ">=5.6"
},
"dependencies": {
"@qiwi/health-indicator": "^1.2.0",
Expand All @@ -41,8 +41,7 @@
"start": "node -r esm --use_strict src/app",
"test": "npm run mocha",
"mocha": "nyc mocha --opts .mocha.opts && nyc report --reporter=text-lcov > ./coverage/lcov.info",
"test_with_report": "npm test && npm run codeclimate_push && npm run coveralls_push",
"codeclimate_push": "codeclimate-test-reporter < ./coverage/lcov.info",
"test_with_report": "npm test && npm run coveralls_push",
"coveralls_push": "cat ./coverage/lcov.info | coveralls"
},
"license": "MIT",
Expand Down

0 comments on commit f1b460d

Please sign in to comment.