Permalink
Browse files

Automatically build and upload OS X binaries upon release

  • Loading branch information...
1 parent 1297e5c commit dd937798fcafe6ff9fe9c21cbcfc25914dc412b5 @FooBarWidget FooBarWidget committed Aug 15, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 build/packaging.rb
View
@@ -88,7 +88,8 @@ def recursive_copy_files(files, destination_dir, preprocess = false, variables =
"admin_password: ..."
end
- sh "git tag -s #{tag_prefix}-#{version} -u 0A212A8C -m 'Release #{version}'"
+ tag = "#{tag_prefix}-#{version}"
+ sh "git tag -s #{tag} -u 0A212A8C -m 'Release #{version}'"
puts "Proceed with pushing tag to remote Git repo and uploading the gem and signatures? [y/n]"
if STDIN.readline == "y\n"
@@ -115,13 +116,19 @@ def recursive_copy_files(files, destination_dir, preprocess = false, variables =
"Status: #{response.code}\n\n" +
response.body
end
+ sh "cd ../passenger_autobuilder && " +
+ "git pull && " +
+ "./autobuild-osx https://github.com/phusion/passenger.git passenger psg_autobuilder_chroot@juvia-helper.phusion.nl --tag=#{tag}"
puts "--------------"
puts "All done."
else
dir = "/u/apps/passenger_website/shared"
subdir = string_option('NAME', version)
sh "scp pkg/#{basename}.{gem,tar.gz,gem.asc,tar.gz.asc} app@shell.phusion.nl:#{dir}/"
sh "ssh app@shell.phusion.nl 'mkdir -p \"#{dir}/assets/#{subdir}\" && mv #{dir}/#{basename}.{gem,tar.gz,gem.asc,tar.gz.asc} \"#{dir}/assets/#{subdir}/\"'"
+ sh "cd ../passenger_autobuilder && " +
+ "git pull && " +
+ "./autobuild-osx TODO passenger-enterprise psg_autobuilder_chroot@juvia-helper.phusion.nl --tag=#{tag}"
end
else
puts "Did not upload anything."

0 comments on commit dd93779

Please sign in to comment.