-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial S3 upload for release tarball deploy.
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ gem "daedalus-core", "~> 0.1" | |
gem "rubinius-bridge", "~> 1.0" | ||
|
||
gem "rubinius-build_tools", "~> 2.0" | ||
|
||
gem 'aws-sdk' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
require 'aws-sdk' | ||
|
||
desc "Deploy a Rubinius release" | ||
task :deploy do | ||
puts "Deploying #{ENV["TRAVIS_TAG"]}..." | ||
# Build and upload the release tarball to S3. | ||
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang" | ||
# 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 | ||
end |