Skip to content

Commit 37715ac

Browse files
test(coverage): transmit coverage to Code Climate (#419)
1 parent 89af024 commit 37715ac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ jobs:
1515
script: commitlint-travis
1616
- script: yarn lint
1717
name: Lint JavaScript
18-
- script: yarn test
19-
before_install: docker-compose up -d
18+
- script: yarn test:coverage
2019
name: Tests
20+
# NOTICE: Handles code coverage reporting to Code Climate
21+
before_install:
22+
- docker-compose up -d
23+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
24+
- chmod +x ./cc-test-reporter
25+
after_script:
26+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2127
- stage: Build & Publish
2228
if: branch = master AND type != pull_request
2329
script: skip

0 commit comments

Comments
 (0)