Skip to content

Commit

Permalink
Fix CodeClimate test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Sep 18, 2020
1 parent 486b390 commit 5c63b14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
gemfile: gemfiles/rails_5.2.gemfile

addons:
code_climate:
repo_token: dedfb7472ee410eec459bff3681d9a8fd8dd237e9bd7e8675a7c8eb7e253bba9

postgresql: "12"
apt:
packages:
Expand All @@ -53,10 +50,16 @@ before_install:

env:
global:
- CC_TEST_REPORTER_ID=dedfb7472ee410eec459bff3681d9a8fd8dd237e9bd7e8675a7c8eb7e253bba9
- PGPORT=5433

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:
- bundle exec rake TEST_CONFIG=./spec/config.travis.yml

after_success:
- bundle exec codeclimate-test-reporter
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2 changes: 0 additions & 2 deletions chrono_model.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rake'
gem.add_development_dependency 'fuubar'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'codeclimate-test-reporter'
end

0 comments on commit 5c63b14

Please sign in to comment.