Skip to content

Commit

Permalink
Raise an exception if tests or changelog generation fail
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 2, 2024
1 parent 88c38c1 commit 8f8f978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require_relative 'lib/rubocop/cop/generator'

desc 'Run tests'
task :test do
system("bundle exec minitest-queue #{Dir.glob('test/**/*_test.rb').shelljoin}")
system("bundle exec minitest-queue #{Dir.glob('test/**/*_test.rb').shelljoin}", exception: true)
end

desc 'Run RuboCop over itself'
Expand Down
4 changes: 2 additions & 2 deletions tasks/changelog.rake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace :changelog do
ref_type = :pull if args[:id]
path = Changelog::Entry.new(type: type, ref_id: args[:id], ref_type: ref_type).write
cmd = "git add #{path}"
system cmd
system cmd, exception: true
puts "Entry '#{path}' created and added to git index"
end
end
Expand All @@ -21,7 +21,7 @@ namespace :changelog do
Changelog.new.merge!.and_delete!
cmd = "git commit -a -m 'Update Changelog'"
puts cmd
system cmd
system cmd, exception: true
end

task :check_clean do
Expand Down

0 comments on commit 8f8f978

Please sign in to comment.