Skip to content

Commit

Permalink
Added check for building the release tarball.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Dec 5, 2015
1 parent c1c79a6 commit 7c339b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rakelib/deploy.rake
Expand Up @@ -2,16 +2,17 @@ require 'aws-sdk'

desc "Deploy a Rubinius release"
task :deploy do
s3 = Aws::S3::Resource.new(region: "us-west-2")

# Build and upload the release tarball to S3.
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang"
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"

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

Rake::Task['release'].invoke

s3 = Aws::S3::Resource.new(region: "us-west-2")
obj = s3.bucket("rubinius-releases-rubinius-com").object(tarball)
obj.upload_file(tarball)
end
Expand Down

0 comments on commit 7c339b1

Please sign in to comment.