Skip to content

Commit 7c339b1

Browse files
committedDec 5, 2015
Added check for building the release tarball.
1 parent c1c79a6 commit 7c339b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎rakelib/deploy.rake

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ require 'aws-sdk'
22

33
desc "Deploy a Rubinius release"
44
task :deploy do
5+
s3 = Aws::S3::Resource.new(region: "us-west-2")
6+
57
# Build and upload the release tarball to S3.
6-
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang"
8+
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang" and ENV["RVM"] == "rbx-2"
79
# TODO: extract the name to a method
810
tarball = "rubinius-#{rbx_version}.tar.bz2"
911

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

1214
Rake::Task['release'].invoke
1315

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

0 commit comments

Comments
 (0)
Please sign in to comment.