mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Integrate codecov
This commit is contained in:
parent
267b4cc601
commit
a2374039ef
4 changed files with 17 additions and 4 deletions
|
@ -3,7 +3,7 @@ references:
|
||||||
unit: &unit
|
unit: &unit
|
||||||
run:
|
run:
|
||||||
name: Run test suite
|
name: Run test suite
|
||||||
command: bundle exec rake
|
command: bundle exec rake COVERAGE=1
|
||||||
restore: &restore
|
restore: &restore
|
||||||
restore_cache:
|
restore_cache:
|
||||||
keys:
|
keys:
|
||||||
|
|
4
Gemfile
4
Gemfile
|
@ -10,8 +10,8 @@ gem "activerecord-jdbcsqlite3-adapter", platforms: :jruby
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem "minitest"
|
gem "minitest"
|
||||||
# https://github.com/codeclimate/test-reporter/issues/413
|
gem "simplecov"
|
||||||
gem "simplecov", "~> 0.17.1"
|
gem 'codecov', require: false
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
|
|
11
Gemfile.lock
11
Gemfile.lock
|
@ -71,6 +71,10 @@ GEM
|
||||||
zeitwerk (~> 2.2, >= 2.2.2)
|
zeitwerk (~> 2.2, >= 2.2.2)
|
||||||
ast (2.4.1)
|
ast (2.4.1)
|
||||||
builder (3.2.4)
|
builder (3.2.4)
|
||||||
|
codecov (0.1.17)
|
||||||
|
json
|
||||||
|
simplecov
|
||||||
|
url
|
||||||
concurrent-ruby (1.1.6)
|
concurrent-ruby (1.1.6)
|
||||||
connection_pool (2.2.3)
|
connection_pool (2.2.3)
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
|
@ -178,6 +182,7 @@ GEM
|
||||||
tzinfo (1.2.7)
|
tzinfo (1.2.7)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
unicode-display_width (1.7.0)
|
unicode-display_width (1.7.0)
|
||||||
|
url (0.3.2)
|
||||||
websocket-driver (0.7.2)
|
websocket-driver (0.7.2)
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-driver (0.7.2-java)
|
websocket-driver (0.7.2-java)
|
||||||
|
@ -191,13 +196,17 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activerecord-jdbcsqlite3-adapter
|
activerecord-jdbcsqlite3-adapter
|
||||||
|
codecov
|
||||||
hiredis
|
hiredis
|
||||||
minitest
|
minitest
|
||||||
rails (>= 6.0.2)
|
rails (>= 6.0.2)
|
||||||
rake
|
rake
|
||||||
redis-namespace
|
redis-namespace
|
||||||
sidekiq!
|
sidekiq!
|
||||||
simplecov (~> 0.17.1)
|
simplecov
|
||||||
sqlite3
|
sqlite3
|
||||||
standard
|
standard
|
||||||
toxiproxy
|
toxiproxy
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.1.4
|
||||||
|
|
|
@ -19,6 +19,10 @@ if ENV["COVERAGE"]
|
||||||
add_filter "/test/"
|
add_filter "/test/"
|
||||||
add_filter "/myapp/"
|
add_filter "/myapp/"
|
||||||
end
|
end
|
||||||
|
if ENV['CI']
|
||||||
|
require 'codecov'
|
||||||
|
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ENV['REDIS_URL'] ||= 'redis://localhost/15'
|
ENV['REDIS_URL'] ||= 'redis://localhost/15'
|
||||||
|
|
Loading…
Reference in a new issue