mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Merge pull request #614 from varvet/report-test-coverage
Report test coverage to CodeClimate
This commit is contained in:
commit
f11a066250
4 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
|||
*.rbc
|
||||
.bundle
|
||||
.config
|
||||
.coverage
|
||||
.yardoc
|
||||
Gemfile.lock
|
||||
InstalledFiles
|
||||
|
|
|
@ -8,6 +8,12 @@ matrix:
|
|||
- gem install bundler
|
||||
script: bundle exec rake rubocop # ONLY lint once, first
|
||||
- rvm: 2.3.5
|
||||
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
|
||||
after_script:
|
||||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
||||
- rvm: 2.4.6
|
||||
- rvm: 2.5.5
|
||||
- rvm: 2.6.3
|
||||
|
|
|
@ -27,5 +27,6 @@ Gem::Specification.new do |gem|
|
|||
gem.add_development_dependency "rake"
|
||||
gem.add_development_dependency "rspec", ">= 3.0.0"
|
||||
gem.add_development_dependency "rubocop", "0.74.0"
|
||||
gem.add_development_dependency "simplecov", ">= 0.17.0"
|
||||
gem.add_development_dependency "yard"
|
||||
end
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "simplecov"
|
||||
SimpleCov.start do
|
||||
add_filter "/spec/"
|
||||
end
|
||||
|
||||
require "pundit"
|
||||
require "pundit/rspec"
|
||||
|
||||
|
|
Loading…
Reference in a new issue