Skip to content

Commit

Permalink
(PUP-12031) Add Rake task for building puppet gems
Browse files Browse the repository at this point in the history
This commit adds a Rake task, gem:build, that will build all puppet
gems which includes the three platform specific puppet gems:
x86-mingw32, x64-mingw32, and universal-darwin
  • Loading branch information
AriaXLi committed Apr 22, 2024
1 parent 870db96 commit 2b67515
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ task :default do
sh %{rake -T}
end

namespace :gem do
desc 'build puppet gems'
task :build do
sh "gem build puppet.gemspec --platform x86-mingw32"
sh "gem build puppet.gemspec --platform x64-mingw32"
sh "gem build puppet.gemspec --platform universal-darwin"
sh "gem build puppet.gemspec"
end
end

task :spec do
ENV["LOG_SPEC_ORDER"] = "true"
sh %{rspec #{ENV['TEST'] || ENV['TESTS'] || 'spec'}}
Expand Down

0 comments on commit 2b67515

Please sign in to comment.