Skip to content

Commit

Permalink
Add a check task
Browse files Browse the repository at this point in the history
This forms a combination of all check tasks which makes it easy to run
it locally or in CI. The release_checks task is also modified to use it
instead.
  • Loading branch information
ekohl committed Dec 8, 2020
1 parent 46f9e43 commit 9a19f23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,7 @@
else
Rake::Task[:spec].invoke
end
Rake::Task['check:symlinks'].invoke
Rake::Task['check:test_file'].invoke
Rake::Task['check:dot_underscore'].invoke
Rake::Task['check:git_ignore'].invoke
Rake::Task[:check].invoke
end

namespace :check do
Expand Down Expand Up @@ -345,6 +342,9 @@
end
end

desc 'Run static pre release checks'
task check: ['check:symlinks', 'check:test_file', 'check:dot_underscore', 'check:git_ignore']

desc 'Display the list of available rake tasks'
task :help do
system('rake -T')
Expand Down

0 comments on commit 9a19f23

Please sign in to comment.