Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Commit

Permalink
Add config for codeclimate integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Smith committed Oct 29, 2018
1 parent 99f8e06 commit f6d2615
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: "2"
plugins:
brakeman:
enabled: true
fixme:
enabled: true
reek:
enabled: true
rubocop:
enabled: true
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ cache: bundler
rvm:
- 2.4.1
before_install: gem install bundler -v 1.16.4
env:
global:
- CC_TEST_REPORTER_ID=b07859ceb064fed550f1ce8eb913053ad9b99271a9a0837bf94491262516214e
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
branches:
only:
- devel
Expand All @@ -14,4 +21,6 @@ branches:
install:
- bundle install --jobs=3 --retry=3
script:
- bundle exec rspec
- bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit f6d2615

Please sign in to comment.