Skip to content

Commit

Permalink
chore(codecoverage): add codeclimate config
Browse files Browse the repository at this point in the history
  • Loading branch information
eth0lo committed Sep 4, 2018
1 parent 72268ea commit 1c4fea3
Show file tree
Hide file tree
Showing 4 changed files with 1,494 additions and 183 deletions.
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,25 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Install dependencies
command: |
npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm test
- run:
name: Setup CodeClimate 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 unit tests
command: |
./cc-test-reporter before-build
npm test
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[![Maintainability](https://api.codeclimate.com/v1/badges/ff33b4540148afef4035/maintainability)](https://codeclimate.com/github/eth0lo/juru/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ff33b4540148afef4035/test_coverage)](https://codeclimate.com/github/eth0lo/juru/test_coverage)
Loading

0 comments on commit 1c4fea3

Please sign in to comment.