-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(coverage): Add codeclimate coverage report
- Run codeclimate test coverage after passing the tests from circleci [Finishes #161966566]
- Loading branch information
1 parent
9874b02
commit cf30f2e
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: ~/repo | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:11.6.0 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: test-reporter | ||
command: | | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
chmod +x ./cc-test-reporter | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: install-pee-wee | ||
command: npm install | ||
|
||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- ./node_modules | ||
|
||
- run: | ||
name: Run Test and Coverage | ||
command: | | ||
./cc-test-reporter before-build | ||
npm test | ||
./cc-test-reporter after-build --exit-code $? | ||
branches: | ||
only: | ||
- ch-codeclimate-setup-161966566 | ||
- develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# ah-technocrats-frontend | ||
|
||
[![Build Status](https://travis-ci.org/andela/ah-technocrats-frontend.svg?branch=develop)](https://travis-ci.org/andela/ah-technocrats-frontend) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/c5fb742348ae4fabdf13/maintainability)](https://codeclimate.com/github/andela/ah-technocrats-frontend/maintainability) | ||
[![Coverage Status](https://coveralls.io/repos/github/andela/ah-technocrats-frontend/badge.svg?branch=develop)](https://coveralls.io/github/andela/ah-technocrats-frontend?branch=develop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters