Skip to content

Commit

Permalink
Use new codecov uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Nov 6, 2021
1 parent 9f2d547 commit 50d6346
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/sentry_delayed_job_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
- name: Run specs
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
CODECOV: ${{ matrix.options.codecov }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml
8 changes: 7 additions & 1 deletion .github/workflows/sentry_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ jobs:
env:
RAILS_VERSION: ${{ matrix.rails_version }}
RUBYOPT: ${{ matrix.options.rubyopt }}
CODECOV: ${{ matrix.options.codecov }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml
8 changes: 7 additions & 1 deletion .github/workflows/sentry_resque_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ jobs:
- name: Run specs
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
CODECOV: ${{ matrix.options.codecov }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml
8 changes: 7 additions & 1 deletion .github/workflows/sentry_ruby_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ jobs:
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
WITHOUT_RACK: ${{ matrix.options.without_rack }}
CODECOV: ${{ matrix.options.codecov }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml
8 changes: 7 additions & 1 deletion .github/workflows/sentry_sidekiq_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
env:
SIDEKIQ_VERSION: ${{ matrix.sidekiq_version }}
RUBYOPT: ${{ matrix.options.rubyopt }}
CODECOV: ${{ matrix.options.codecov }}
run: |
bundle install --jobs 4 --retry 3
make test
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml
1 change: 1 addition & 0 deletions sentry-delayed_job/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gem "i18n", "<= 1.8.7"
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"

gem "delayed_job"
gem "delayed_job_active_record"
Expand Down
5 changes: 5 additions & 0 deletions sentry-delayed_job/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
coverage_dir File.join(__FILE__, "../../coverage")
end

if ENV["CI"]
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require "sentry-delayed_job"

DUMMY_DSN = 'http://12345:67890@sentry.localdomain/sentry/42'
Expand Down
1 change: 1 addition & 0 deletions sentry-rails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ gem "rspec", "~> 3.0"
gem "rspec-retry"
gem "rspec-rails", "~> 4.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"

gem "rake", "~> 12.0"

Expand Down
6 changes: 6 additions & 0 deletions sentry-rails/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
coverage_dir File.join(__FILE__, "../../coverage")
end


if ENV["CI"]
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

# this already requires the sdk
require "support/test_rails_app/app"
# need to be required after rails is loaded from the above
Expand Down
1 change: 1 addition & 0 deletions sentry-resque/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gemspec
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"

gem "rails"

Expand Down
5 changes: 5 additions & 0 deletions sentry-resque/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
coverage_dir File.join(__FILE__, "../../coverage")
end

if ENV["CI"]
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require "sentry-resque"

DUMMY_DSN = 'http://12345:67890@sentry.localdomain/sentry/42'
Expand Down
1 change: 1 addition & 0 deletions sentry-ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gem "rspec-retry"
gem "webmock"
gem "timecop"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"

gem "object_tracer"
gem "debug", github: "ruby/debug", platform: :ruby if RUBY_VERSION.to_f >= 2.6
Expand Down
5 changes: 5 additions & 0 deletions sentry-ruby/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
coverage_dir File.join(__FILE__, "../../coverage")
end

if ENV["CI"]
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require "sentry-ruby"

DUMMY_DSN = 'http://12345:67890@sentry.localdomain/sentry/42'
Expand Down
1 change: 1 addition & 0 deletions sentry-sidekiq/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gemspec
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"

sidekiq_version = ENV["SIDEKIQ_VERSION"]
sidekiq_version = "6.0" if sidekiq_version.nil?
Expand Down
5 changes: 5 additions & 0 deletions sentry-sidekiq/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
coverage_dir File.join(__FILE__, "../../coverage")
end

if ENV["CI"]
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require "sentry-sidekiq"

DUMMY_DSN = 'http://12345:67890@sentry.localdomain/sentry/42'
Expand Down

0 comments on commit 50d6346

Please sign in to comment.