Skip to content

Commit

Permalink
Make sure batch_build exit code is correct and require artifacts in (#…
Browse files Browse the repository at this point in the history
…2224)

craft
  • Loading branch information
sl0thentr0py committed Jan 9, 2024
1 parent 145479e commit bf13c7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
minVersion: '0.23.1'
minVersion: '1.8.1'
changelogPolicy: simple
preReleaseCommand: ruby .scripts/batch_release.rb
requireNames:
- /^sentry-ruby-*\.gem$/
- /^sentry-ruby-core-*\.gem$/
- /^sentry-rails-*\.gem$/
- /^sentry-sidekiq-*\.gem$/
- /^sentry-resque-*\.gem$/
- /^sentry-delayed_job-*\.gem$/
- /^sentry-opentelemetry-*\.gem$/
targets:
- name: gem
- name: registry
Expand Down
7 changes: 5 additions & 2 deletions .scripts/batch_build.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
INTEGRATIONS = %w(sentry-rails sentry-sidekiq sentry-delayed_job sentry-resque sentry-opentelemetry)
GEMS = %w(sentry-ruby) + INTEGRATIONS

GEMS.each do |gem_name|
success = GEMS.map do |gem_name|
puts(`cd #{gem_name}; make build`)
end
$?.success?
end.all?

exit success ? 0 : 1

0 comments on commit bf13c7e

Please sign in to comment.