Skip to content

Commit

Permalink
Adding Code Climate coverage reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Aug 5, 2020
1 parent d44f8d7 commit a94982d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ jobs:
- run:
name: Build code
command: npm run build:prod
- run:
name: Run unit tests
command: npm run jest
- run:
name: Install python dependencies
command: pip install -e .
Expand All @@ -165,9 +162,16 @@ jobs:
keys:
- v1-dependencies-{{ checksum "IRIS_VERSION" }}
- run:
name: Run Jest unit tests
command: npm run test
# Submit coverage
name: Install Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run Test and Coverage
command: |
./cc-test-reporter before-build
npm run test
./cc-test-reporter after-build --exit-code $?
deploy:
docker:
Expand Down

0 comments on commit a94982d

Please sign in to comment.