travis_heroku 0.0.1

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/README.md ADDED
@@ -0,0 +1,31 @@
1
+ This gem makes it easier to trigger Heroku deploys from successful Travis
2
+ builds.
3
+
4
+ To use:
5
+
6
+ Add this gem as a development dependency to your app.
7
+
8
+ Install the travis gem and the Heroku Toolbelt locally.
9
+
10
+ Add an encrypted environment variable with your Heroku API key to your
11
+ .travis.yml file by running:
12
+
13
+ ```bash
14
+ travis encrypt HEROKU_API_KEY=`heroku auth:token` --add
15
+ ```
16
+
17
+ Set a HEROKU_APP environment variable in your .travis.yml file to your
18
+ Heroku app name:
19
+
20
+ ```yaml
21
+ env:
22
+ global:
23
+ - HEROKU_APP=mcalpha
24
+ ```
25
+
26
+ Add an after_success script to your .travis.yml file:
27
+
28
+ ```yaml
29
+ after_success:
30
+ - travis-heroku
31
+ ```
data/bin/ssh-nostrict ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+
3
+ ssh \
4
+ -o 'StrictHostKeyChecking no' \
5
+ "$@"
data/bin/travis-heroku ADDED
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+
3
+ wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sudo sh
4
+
5
+ KEY_PATH=$HOME/.ssh/id_rsa
6
+ KEY_ID=travis$TRAVIS_JOB_NUMBER
7
+ ssh-keygen -f $KEY_PATH -C $KEY_ID -P ''
8
+ heroku keys:add
9
+
10
+ git remote add heroku git@heroku.com:${HEROKU_APP}.git
11
+ GIT_SSH=ssh-nostrict
12
+ git push heroku master
13
+
14
+ heroku keys:remove $KEY_ID
@@ -0,0 +1,12 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'travis_heroku'
3
+ s.version = '0.0.1'
4
+ s.summary = 'Easily trigger Heroku deploys from Travis builds.'
5
+ s.description = s.summary
6
+ s.homepage = 'https://github.com/mmb/travis-heroku'
7
+ s.authors = ['Matthew M. Boedicker']
8
+ s.email = %w{matthewm@boedicker.org}
9
+
10
+ s.files = `git ls-files`.split("\n")
11
+ s.executables = %w{travis-heroku ssh-nostrict}
12
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: travis_heroku
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Matthew M. Boedicker
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-02 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Easily trigger Heroku deploys from Travis builds.
15
+ email:
16
+ - matthewm@boedicker.org
17
+ executables:
18
+ - travis-heroku
19
+ - ssh-nostrict
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - README.md
24
+ - bin/ssh-nostrict
25
+ - bin/travis-heroku
26
+ - travis-heroku.gemspec
27
+ homepage: https://github.com/mmb/travis-heroku
28
+ licenses: []
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 1.8.23
48
+ signing_key:
49
+ specification_version: 3
50
+ summary: Easily trigger Heroku deploys from Travis builds.
51
+ test_files: []