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

(cherry picked from commit e58bc11)
  • Loading branch information
AriaXLi committed May 8, 2024
1 parent 1d0cc6b commit 95cc3aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
30 changes: 0 additions & 30 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,36 +45,6 @@ task :default do
sh %{rake -T}
end

<<<<<<< Updated upstream
||||||| Stash base
namespace :pl_ci do
desc 'Build puppet gems'
task :gem_build do
stdout, stderr, status = Open3.capture3('gem build puppet-x86-mingw32.gemspec && gem build puppet-x64-mingw32.gemspec && gem build puppet-universal-darwin.gemspec && gem build puppet.gemspec')
if !status.exitstatus.zero?
puts "Error building facter.gemspec \n#{stdout} \n#{stderr}"
exit(1)
else
puts stdout
end
end
end

=======
namespace :pl_ci do
desc 'Build puppet gems'
task :gem_build do
stdout, stderr, status = Open3.capture3('gem build puppet.gemspec --platform x86-mingw32 && gem build puppet.gemspec --platform x64-mingw32 && gem build puppet.gemspec --platform universal-darwin && gem build puppet.gemspec')
if !status.exitstatus.zero?
puts "Error building facter.gemspec \n#{stdout} \n#{stderr}"
exit(1)
else
puts stdout
end
end
end

>>>>>>> Stashed changes
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 95cc3aa

Please sign in to comment.