Skip to content

Commit

Permalink
add build:pre_check task to run prerelease spec
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Sep 11, 2023
1 parent a944b68 commit 68bc2b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/release_gem.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Rake::Task["build"].enhance(["build:pre_check"])

desc "Checks executed before gem is built"
task :"build:pre_check" do
require "rspec"
ret = RSpec::Core::Runner.run(["spec/datadog/ci/release_gem_spec.rb"])
raise "Release tests failed! See error output above." if ret != 0
end

0 comments on commit 68bc2b5

Please sign in to comment.