Skip to content

Commit

Permalink
chore(setup Covealls): Intergrate coverage and coveralls
Browse files Browse the repository at this point in the history
- Setup coverage in the project
- Setup coveralls in the project.

[Finishes #165244165]
  • Loading branch information
Etomovich committed Apr 10, 2019
1 parent 0cc382d commit f49d895
Show file tree
Hide file tree
Showing 6 changed files with 512 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
name: Run Test and Coverage
command: |
./cc-test-reporter before-build
npm test -- --coverage
npm run coverage
npm run test
npm run coveralls
./cc-test-reporter after-build --exit-code $?
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: LArYAKfzGbkOZej5ZpydUYbUf2y4kJ0eG
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ cache:
directories:
- node_modules

install:
- npm install

script:
- npm test
- npm run coverage
- npm run test
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.com/andela/ah-legion-frontend.svg?branch=develop)](https://travis-ci.org/andela/ah-legion-frontend)
[![Coverage Status](https://coveralls.io/repos/github/andela/ah-legion-frontend/badge.svg?branch=develop)](https://coveralls.io/github/andela/ah-legion-frontend?branch=develop)
[![CircleCI](https://circleci.com/gh/andela/ah-legion-frontend.svg?style=svg)](https://circleci.com/gh/andela/ah-legion-frontend)
[![Maintainability](https://api.codeclimate.com/v1/badges/651fcb6501ce17364a89/maintainability)](https://codeclimate.com/github/andela/ah-legion-frontend/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/651fcb6501ce17364a89/test_coverage)](https://codeclimate.com/github/andela/ah-legion-frontend/test_coverage)
Expand Down
Loading

0 comments on commit f49d895

Please sign in to comment.