File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ gem "daedalus-core", "~> 0.1"
7
7
gem "rubinius-bridge" , "~> 1.0"
8
8
9
9
gem "rubinius-build_tools" , "~> 2.0"
10
+
11
+ gem 'aws-sdk'
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: https://rubygems.org/
3
3
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 )
4
10
daedalus-core (0.5.0 )
11
+ jmespath (1.1.3 )
5
12
rake (10.4.2 )
6
13
redcard (1.1.0 )
7
14
rubinius-ast (2.3.2 )
@@ -22,8 +29,12 @@ PLATFORMS
22
29
ruby
23
30
24
31
DEPENDENCIES
32
+ aws-sdk
25
33
daedalus-core (~> 0.1 )
26
34
rake (~> 10.0 )
27
35
redcard (~> 1.0 )
28
36
rubinius-bridge (~> 1.0 )
29
37
rubinius-build_tools (~> 2.0 )
38
+
39
+ BUNDLED WITH
40
+ 1.10.6
Original file line number Diff line number Diff line change
1
+ require 'aws-sdk'
2
+
1
3
desc "Deploy a Rubinius release"
2
4
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
4
18
end
You can’t perform that action at this time.
0 commit comments