heroku_hatchet 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/hatchet.gemspec +3 -4
- data/lib/hatchet.rb +0 -1
- data/lib/hatchet/app.rb +1 -0
- data/lib/hatchet/tasks.rb +7 -23
- data/lib/hatchet/version.rb +1 -1
- data/test/hatchet/ci_test.rb +0 -1
- data/test/test_helper.rb +3 -0
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9898ba7bdc65d51d6325bde26c4e535e1be6a6a
|
4
|
+
data.tar.gz: 44a7a2d536cb66d078aae101d9f83c749038a40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebf4597dc112b0974fe619e12d61609967098616ad69f9a5280c51e84e596c26abfd87aac41933966ecdc1f5cb760551973d97e943af0e17b5c13417ef6c5c6
|
7
|
+
data.tar.gz: a5445945bc151a63295b62169e5832a4b1910591d4f95830e97d3a8e21b57c6004706f290ecf5e6cbc32e683c237bfdb89fbafb5f5477cb48baa6b5d3c84efea
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -295,7 +295,7 @@ To run on travis you will need to configure your `.travis.yml` to run the approp
|
|
295
295
|
For reference see the `.travis.yml` from [hatchet](https://github.com/heroku/hatchet/blob/master/.travis.yml) and the [heroku-ruby-buildpack](https://github.com/heroku/heroku-buildpack-ruby/blob/master/.travis.yml). To make running on travis easier there is a rake task in Hatchet that can be run before your tests are executed
|
296
296
|
|
297
297
|
```
|
298
|
-
before_script: bundle exec rake hatchet:
|
298
|
+
before_script: bundle exec rake hatchet:setup_ci
|
299
299
|
```
|
300
300
|
|
301
301
|
I recommend signing up for a new heroku account for running your tests on travis, otherwise you will quickly excede your API limit. Once you have the new api token you can use this technique to [securely send travis the data](http://docs.travis-ci.com/user/environment-variables/#Secure-Variables).
|
data/hatchet.gemspec
CHANGED
@@ -19,17 +19,16 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
21
|
gem.add_dependency "platform-api", "~> 2"
|
22
|
-
gem.add_dependency "
|
23
|
-
gem.add_dependency "activesupport", "~> 4"
|
22
|
+
gem.add_dependency "activesupport", "~> 5"
|
24
23
|
gem.add_dependency "rrrretry", "~> 1"
|
25
24
|
gem.add_dependency "anvil-cli", "~> 0"
|
26
25
|
gem.add_dependency "excon", "~> 0"
|
27
26
|
gem.add_dependency "thor", "~> 0"
|
28
27
|
gem.add_dependency "repl_runner", "~> 0.0.3"
|
29
28
|
gem.add_dependency "threaded", "~> 0"
|
29
|
+
gem.add_dependency 'minitest-retry', '~> 0.1.9'
|
30
30
|
|
31
|
-
|
32
|
-
gem.add_development_dependency "minitest", "~> 4.2"
|
31
|
+
gem.add_development_dependency "minitest", "~> 5.1"
|
33
32
|
gem.add_development_dependency "rake", "~> 10"
|
34
33
|
gem.add_development_dependency "mocha", "~> 1"
|
35
34
|
gem.add_development_dependency "parallel_tests", "~> 0"
|
data/lib/hatchet.rb
CHANGED
data/lib/hatchet/app.rb
CHANGED
data/lib/hatchet/tasks.rb
CHANGED
@@ -1,20 +1,10 @@
|
|
1
|
-
config_ssh = <<-RUBY
|
2
|
-
|
3
|
-
Host heroku.com
|
4
|
-
StrictHostKeyChecking no
|
5
|
-
CheckHostIP no
|
6
|
-
UserKnownHostsFile=/dev/null
|
7
|
-
Host github.com
|
8
|
-
StrictHostKeyChecking no
|
9
|
-
RUBY
|
10
|
-
|
11
1
|
namespace :hatchet do
|
12
|
-
task :
|
2
|
+
task :setup_ci do
|
13
3
|
puts "== Setting Up Travis =="
|
14
|
-
|
15
|
-
unless File.exists?(
|
16
|
-
File.open(
|
17
|
-
file.write
|
4
|
+
netrc_file = "#{ENV['HOME']}/.netrc"
|
5
|
+
unless File.exists?(netrc_file)
|
6
|
+
File.open(netrc_file, 'w') do |file|
|
7
|
+
file.write <<-EOF
|
18
8
|
machine git.heroku.com
|
19
9
|
login #{ENV.fetch('HEROKU_API_USER')}
|
20
10
|
password #{ENV.fetch('HEROKU_API_KEY')}
|
@@ -25,9 +15,6 @@ EOF
|
|
25
15
|
"bundle exec hatchet install",
|
26
16
|
"if [ `git config --get user.email` ]; then echo 'already set'; else `git config --global user.email '#{ENV.fetch('HEROKU_API_USER')}'`; fi",
|
27
17
|
"if [ `git config --get user.name` ]; then echo 'already set'; else `git config --global user.name 'BuildpackTester'` ; fi",
|
28
|
-
"echo '#{config_ssh}' >> ~/.ssh/config",
|
29
|
-
"ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''",
|
30
|
-
"yes | heroku keys:add -y"
|
31
18
|
].each do |command|
|
32
19
|
puts "== Running: #{command}"
|
33
20
|
Bundler.with_clean_env do
|
@@ -38,10 +25,7 @@ EOF
|
|
38
25
|
puts "== Done =="
|
39
26
|
end
|
40
27
|
|
41
|
-
task :
|
42
|
-
[
|
43
|
-
puts "== Running: #{command}"
|
44
|
-
`#{command}`
|
45
|
-
end
|
28
|
+
task :setup_travis do
|
29
|
+
Rake::Task["hatchet:setup_ci"].invoke
|
46
30
|
end
|
47
31
|
end
|
data/lib/hatchet/version.rb
CHANGED
data/test/hatchet/ci_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -9,6 +9,9 @@ Bundler.require
|
|
9
9
|
require 'minitest/autorun'
|
10
10
|
require "mocha/setup"
|
11
11
|
|
12
|
+
require 'minitest/retry'
|
13
|
+
Minitest::Retry.use!
|
14
|
+
|
12
15
|
# Not needed if you're using the most recent version
|
13
16
|
if defined?(MiniTest::Unit::TestCase)
|
14
17
|
Minitest::Test = MiniTest::Unit::TestCase
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_hatchet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
@@ -24,34 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: heroku-api
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: activesupport
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '5'
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '5'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rrrretry
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,20 +122,34 @@ dependencies:
|
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest-retry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.1.9
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.1.9
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: minitest
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '5.1'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '5.1'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rake
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|