Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7c339b1abf18
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4209d55c1ff7
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Dec 6, 2015

  1. Simplified release task.

    brixen committed Dec 6, 2015
    Copy the full SHA
    cf5a67f View commit details
  2. Copy the full SHA
    f45583c View commit details
  3. Copy the full SHA
    4209d55 View commit details
Showing with 20 additions and 16 deletions.
  1. +7 −4 rakelib/deploy.rake
  2. +1 −0 rakelib/package.rake
  3. +11 −0 rakelib/package.rb
  4. +1 −12 rakelib/release.rake
11 changes: 7 additions & 4 deletions rakelib/deploy.rake
Original file line number Diff line number Diff line change
@@ -7,13 +7,16 @@ task :deploy do
# Build and upload the release tarball to S3.
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang" and ENV["RVM"] == "rbx-2"
# TODO: extract the name to a method
tarball = "rubinius-#{rbx_version}.tar.bz2"
basename = "rubinius-#{rbx_version}.tar.bz2"

puts "Deploying release tarball #{tarball}..."
puts "Deploying release tarball #{basename}..."

Rake::Task['release'].invoke

obj = s3.bucket("rubinius-releases-rubinius-com").object(tarball)
obj.upload_file(tarball)
["", ".md5", ".sha1", ".sha512"].each do |ext|
name = basename + ext
obj = s3.bucket("rubinius-releases-rubinius-com").object(name)
obj.upload_file(name)
end
end
end
1 change: 1 addition & 0 deletions rakelib/package.rake
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ namespace :package do

write_md5_digest_file archive
write_sha1_digest_file archive
write_sha512_digest_file archive
end

task :binary_builder do
11 changes: 11 additions & 0 deletions rakelib/package.rb
Original file line number Diff line number Diff line change
@@ -21,6 +21,17 @@ def write_sha1_digest_file(filename)
puts "Computed SHA1 to #{digest_file}"
end

def write_sha512_digest_file(filename)
require 'digest/sha2'

digest_file = "#{filename}.sha512"
File.open(digest_file, "w") do |f|
f.puts Digest::SHA512.file(filename).hexdigest
end

puts "Computed SHA512 to #{digest_file}"
end

def rbx_version
release_revision.first
end
13 changes: 1 addition & 12 deletions rakelib/release.rake
Original file line number Diff line number Diff line change
@@ -7,15 +7,4 @@ task :revision_file do
end

desc "Create a release tarball"
task :release => :revision_file do
Dir.chdir BUILD_CONFIG[:gems_cache] do
sh "rm -f *", :verbose => $verbose
end
sh "bundle update", :verbose => $verbose
Rake::Task['gems:update_list'].invoke
Dir.chdir BUILD_CONFIG[:gems_cache] do
sh "rm -f bundler*", :verbose => $verbose
sh "gem fetch bundler", :verbose => $verbose
end
Rake::Task['package:tar'].invoke
end
task :release => %W[revision_file package:tar]