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 23, 2024
1 parent 867ce9c commit 5d66a5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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 :pl_ci do
desc 'Build puppet gems'
task :gem_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
2 changes: 1 addition & 1 deletion ext/project_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ gem_rdoc_options:
- README.md
- --line-numbers
pre_tasks:
'package:apple': 'cfpropertylist'
'package:apple': 'cfpropertylist'

0 comments on commit 5d66a5b

Please sign in to comment.