Skip to content

Commit e58bc11

Browse files
committed
(PUP-12031) Add Rake task for building puppet gems
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
1 parent 867ce9c commit e58bc11

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Rakefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ task :default do
4545
sh %{rake -T}
4646
end
4747

48+
namespace :pl_ci do
49+
desc 'Build puppet gems'
50+
task :gem_build do
51+
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')
52+
if !status.exitstatus.zero?
53+
puts "Error building facter.gemspec \n#{stdout} \n#{stderr}"
54+
exit(1)
55+
else
56+
puts stdout
57+
end
58+
end
59+
end
60+
4861
task :spec do
4962
ENV["LOG_SPEC_ORDER"] = "true"
5063
sh %{rspec #{ENV['TEST'] || ENV['TESTS'] || 'spec'}}

ext/project_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ gem_rdoc_options:
77
- README.md
88
- --line-numbers
99
pre_tasks:
10-
'package:apple': 'cfpropertylist'
10+
'package:apple': 'cfpropertylist'

0 commit comments

Comments
 (0)