Skip to content

Commit fd97eb1

Browse files
committedDec 4, 2015
Added initial S3 upload for release tarball deploy.
1 parent 925e90b commit fd97eb1

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed
 

‎Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ gem "daedalus-core", "~> 0.1"
77
gem "rubinius-bridge", "~> 1.0"
88

99
gem "rubinius-build_tools", "~> 2.0"
10+
11+
gem 'aws-sdk'

‎Gemfile.lock

+11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
aws-sdk (2.2.4)
5+
aws-sdk-resources (= 2.2.4)
6+
aws-sdk-core (2.2.4)
7+
jmespath (~> 1.0)
8+
aws-sdk-resources (2.2.4)
9+
aws-sdk-core (= 2.2.4)
410
daedalus-core (0.5.0)
11+
jmespath (1.1.3)
512
rake (10.4.2)
613
redcard (1.1.0)
714
rubinius-ast (2.3.2)
@@ -22,8 +29,12 @@ PLATFORMS
2229
ruby
2330

2431
DEPENDENCIES
32+
aws-sdk
2533
daedalus-core (~> 0.1)
2634
rake (~> 10.0)
2735
redcard (~> 1.0)
2836
rubinius-bridge (~> 1.0)
2937
rubinius-build_tools (~> 2.0)
38+
39+
BUNDLED WITH
40+
1.10.6

‎rakelib/deploy.rake

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1+
require 'aws-sdk'
2+
13
desc "Deploy a Rubinius release"
24
task :deploy do
3-
puts "Deploying #{ENV["TRAVIS_TAG"]}..."
5+
# Build and upload the release tarball to S3.
6+
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang"
7+
# TODO: extract the name to a method
8+
tarball = "rubinius-#{rbx_version}.tar.bz2"
9+
10+
puts "Deploying release tarball #{tarball}..."
11+
12+
Rake::Task['release'].invoke
13+
14+
s3 = Aws::S3::Resource.new(region: "us-west-2")
15+
obj = s3.bucket("rubinius-releases-rubinius-com").object(tarball)
16+
obj.upload_file(tarball)
17+
end
418
end

0 commit comments

Comments
 (0)