travis_heroku 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/travis-heroku +3 -3
- data/travis_heroku.gemspec +1 -1
- metadata +1 -1
data/bin/travis-heroku
CHANGED
|
@@ -6,10 +6,10 @@ heroku = Heroku::API.new
|
|
|
6
6
|
|
|
7
7
|
key_path = File.expand_path('~/.ssh/id_rsa')
|
|
8
8
|
key_id = "travis#{ENV['TRAVIS_JOB_NUMBER']}"
|
|
9
|
-
|
|
9
|
+
system "ssh-keygen -f #{key_path} -C #{key_id} -P ''"
|
|
10
10
|
heroku.post_key(File.read("#{key_path}.pub"))
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
system "git remote add heroku git@heroku.com:${HEROKU_APP}.git"
|
|
13
|
+
system({'GIT_SSH' => 'ssh-nostrict'}, 'git push heroku master')
|
|
14
14
|
|
|
15
15
|
heroku.delete_key key_id
|
data/travis_heroku.gemspec
CHANGED