Skip to content

Commit

Permalink
Added initial S3 upload for release tarball deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Dec 4, 2015
1 parent 925e90b commit fd97eb1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -7,3 +7,5 @@ gem "daedalus-core", "~> 0.1"
gem "rubinius-bridge", "~> 1.0"

gem "rubinius-build_tools", "~> 2.0"

gem 'aws-sdk'
11 changes: 11 additions & 0 deletions Gemfile.lock
@@ -1,7 +1,14 @@
GEM
remote: https://rubygems.org/
specs:
aws-sdk (2.2.4)
aws-sdk-resources (= 2.2.4)
aws-sdk-core (2.2.4)
jmespath (~> 1.0)
aws-sdk-resources (2.2.4)
aws-sdk-core (= 2.2.4)
daedalus-core (0.5.0)
jmespath (1.1.3)
rake (10.4.2)
redcard (1.1.0)
rubinius-ast (2.3.2)
Expand All @@ -22,8 +29,12 @@ PLATFORMS
ruby

DEPENDENCIES
aws-sdk
daedalus-core (~> 0.1)
rake (~> 10.0)
redcard (~> 1.0)
rubinius-bridge (~> 1.0)
rubinius-build_tools (~> 2.0)

BUNDLED WITH
1.10.6
16 changes: 15 additions & 1 deletion rakelib/deploy.rake
@@ -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

0 comments on commit fd97eb1

Please sign in to comment.