forked from RefugeRestrooms/refugerestrooms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Code Climate integration (RefugeRestrooms#449)
* 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
1 parent
3566c1a
commit 48ecc96
Showing
2 changed files
with
12 additions
and
1 deletion.
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 |
---|---|---|
@@ -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 |
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