Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit bfc400b

Browse files
authored
Setup for cc test coverage reporting (#37)
1 parent 553787e commit bfc400b

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ notifications:
2121
addons:
2222
code_climate:
2323
repo_token: 704eb62133d951ce460a6047a15a58e0a521aa20ec6a533fa7a37585f8a75602
24-
after_success:
25-
- bundle exec codeclimate-test-reporter
24+
before_script:
25+
- ./install-cc-test-reporter.sh
26+
- ./cc-test-reporter before-build
27+
after_script:
28+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

install-cc-test-reporter.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
3+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
4+
chmod +x ./cc-test-reporter

shipcloud.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
2727
spec.add_development_dependency "rspec", "~> 3.6"
2828
spec.add_development_dependency "webmock", "~> 3.0"
2929
spec.add_development_dependency "pry", "~> 0.10"
30-
spec.add_development_dependency "codeclimate-test-reporter"
30+
spec.add_development_dependency "simplecov"
3131
end

0 commit comments

Comments
 (0)