Skip to content

Commit

Permalink
Merge pull request #53 from jcypret/upgrade-test-coverage-reporter
Browse files Browse the repository at this point in the history
Switch code coverage reporting to use CC binary
  • Loading branch information
jcypret authored Apr 15, 2018
2 parents 33b099f + 07c864e commit ea3a1cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
env:
global:
- CC_TEST_REPORTER_ID=37aee70bb2e818f3bf4d2af88ea4a4355393901ba98b3876c244d42ed20fdbe1
language: ruby
cache: bundler
rvm:
- 2.3.0
addons:
code_climate:
repo_token: 37aee70bb2e818f3bf4d2af88ea4a4355393901ba98b3876c244d42ed20fdbe1
after_success:
- bundle exec codeclimate-test-reporter
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 rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2 changes: 1 addition & 1 deletion hashid-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler"
spec.add_development_dependency "byebug"
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.4.0"
spec.add_development_dependency "rubocop"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "sqlite3"

spec.add_runtime_dependency "activerecord", ">= 4.0"
Expand Down

0 comments on commit ea3a1cc

Please sign in to comment.