Skip to content

Commit

Permalink
Add Code Climate integration (RefugeRestrooms#449)
Browse files Browse the repository at this point in the history
* README.md: Add Code Climate badges

* .travis.yml: Add Code Climate test reporter

see https://docs.codeclimate.com/docs/configuring-test-coverage
and https://docs.codeclimate.com/docs/travis-ci-test-coverage

* Fix Code Climate test coverage upload (RefugeRestrooms#486)

Adds "--prefix /refugerestrooms" to the cc-test-reporter command.

Co-authored-by: Jason Chen <[email protected]>
  • Loading branch information
DeeDeeG and stardust66 committed Jun 16, 2018
1 parent 3566c1a commit 4f86eca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
env:
global:
- CC_TEST_REPORTER_ID=c18df080592f9c99ca8080a6d5e052aa5fd3964044a0fe0b71e48f8e18998dc2
language: ruby
services: docker
before_install:
- docker-compose build
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- docker-compose run -e "RAILS_ENV=test" web rake db:test:prepare spec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT --prefix /refugerestrooms
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ Production CI: [![Build Status](https://travis-ci.org/RefugeRestrooms/refugerest

Develop CI: [![Build Status](https://travis-ci.org/RefugeRestrooms/refugerestrooms.svg?branch=develop)](https://travis-ci.org/RefugeRestrooms/refugerestrooms)

Code Climate: [![Maintainability](https://api.codeclimate.com/v1/badges/a641d46a4ad2c2f01932/maintainability)](https://codeclimate.com/github/RefugeRestrooms/refugerestrooms/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a641d46a4ad2c2f01932/test_coverage)](https://codeclimate.com/github/RefugeRestrooms/refugerestrooms/test_coverage)

[![Stories in Ready](https://badge.waffle.io/RefugeRestrooms/refugerestrooms.png?label=ready)](https://waffle.io/RefugeRestrooms/refugerestrooms)

Waffle.io: [![Stories in Ready](https://badge.waffle.io/RefugeRestrooms/refugerestrooms.png?label=ready)](https://waffle.io/RefugeRestrooms/refugerestrooms)
# REFUGE restrooms

Providing safe restroom access to transgender, intersex, and gender nonconforming individuals.
Expand Down

0 comments on commit 4f86eca

Please sign in to comment.