poise-boiler 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 655c4dec302223a0561e3dd796f2558b89de756b
4
- data.tar.gz: 1fc9889a53e6d067af760965d20d82319dc40958
3
+ metadata.gz: ab3e61e0e726172815e17d279f398c51317da318
4
+ data.tar.gz: 31e31e3a68df721fc1d19e2fdfc4a4e0f9800746
5
5
  SHA512:
6
- metadata.gz: 1aeb8f0b44d0b107cc3d22e217fa953869fa2b87bee5c756f655d38db2ec6b45e0763a83f98b979c9a3c3717c6763e7bd762a86d814053f8424ced1a4fe62759
7
- data.tar.gz: 46394c02f8ca753c3bdf68627a6633dc9f127d90cdb01641057d80ec0b845464c8e43dae658cd8ce4d8e7f2903900f35681c5a613901de0622f411c8f0257915
6
+ metadata.gz: 7604819d600bc3fa91c89914a4932e2c8522e06221088f27f046c40058ff6d71d37d20ae885b95ec394e301d7beda78378e67882402eeb77d93f564880244ce7
7
+ data.tar.gz: e4d3948fed55d973209f16b0a728e875e8e76846598471654fc27822c6f544e90f56c384db4ed851fa76dd9b6a5da75ba78acc0b17db0bda7ed88b274f7ac769
data/CHANGELOG.md CHANGED
@@ -1,9 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.1.1
4
+
5
+ * Don't mask errors from failed subtasks of `rake travis`.
6
+ * Use the `chef:kitchen` task for running Test Kitchen on Travis.
7
+
3
8
  ## v1.1.0
4
9
 
5
- Support for kitchen-rackspace'd cookbooks.
10
+ * Support for kitchen-rackspace'd cookbooks.
6
11
 
7
12
  ## v1.0.0
8
13
 
9
- Initial release!
14
+ * Initial release!
@@ -37,28 +37,33 @@ module PoiseBoiler
37
37
  extend ::Rake::DSL
38
38
 
39
39
  file 'test/docker/docker.key' do
40
- sh 'openssl rsa -in test/docker/docker.pem -passin env:KITCHEN_DOCKER_PASS -out test/docker/docker.key'
40
+ sh(*%w{openssl rsa -in test/docker/docker.pem -passin env:KITCHEN_DOCKER_PASS -out test/docker/docker.key})
41
41
  end
42
42
 
43
43
  file './docker' do
44
- sh 'wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O docker'
44
+ begin
45
+ sh(*%w{wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O docker})
46
+ rescue RuntimeError
47
+ sh(*%w{curl https://get.docker.io/builds/Linux/x86_64/docker-latest -o docker})
48
+ end
45
49
  File.chmod(0755, './docker')
46
50
  end
47
51
 
48
52
  file '.ssh/id_rsa' do
49
- sh 'ssh-keygen -f ~/.ssh/id_rsa -b 768 -P ""'
53
+ sh(*%w{ssh-keygen -f ~/.ssh/id_rsa -b 768 -P ""})
50
54
  end
51
55
 
52
56
  desc 'Run Test-Kitchen integration tests.'
53
- task 'travis:integration' => ( integration_rackspace? ? %w{.ssh/id_rsa} : %w{test/docker/docker.key ./docker} ) do
54
- sh './bin/kitchen test -d always'
55
- end
57
+ task 'travis:integration' => ( integration_rackspace? ? %w{.ssh/id_rsa chef:kitchen} : %w{test/docker/docker.key ./docker chef:kitchen} )
56
58
 
57
59
  desc 'Run CI tests'
58
60
  task 'travis' do
59
61
  run_subtask('spec')
60
62
  run_subtask('chef:foodcritic')
61
63
  run_subtask('travis:integration') if integration_tests?
64
+ if @failed && !@failed.empty?
65
+ raise "Subtasks #{@failed.join(', ')} failed"
66
+ end
62
67
  end
63
68
  end
64
69
 
@@ -130,6 +135,7 @@ module PoiseBoiler
130
135
  task(name).invoke
131
136
  shell.say("Task #{name} succeeded.", :green)
132
137
  rescue StandardError => ex
138
+ (@failed ||= []) << name
133
139
  shell.say("Task #{name} failed with #{ex}:", :red)
134
140
  travis_fold "#{name}.backtrace" do
135
141
  shell.say(ex.backtrace.map{|line| ' '+line }.join("\n"), :red)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseBoiler
19
- VERSION = '1.1.0'
19
+ VERSION = '1.1.1'
20
20
  end
@@ -26,7 +26,17 @@ Gem::Specification.new do |s|
26
26
  end
27
27
  EOH
28
28
  file '.kitchen.yml', <<-EOH
29
- suites: []
29
+ driver:
30
+ name: dummy
31
+
32
+ provisioner:
33
+ name: dummy
34
+
35
+ platforms:
36
+ - name: default
37
+
38
+ suites:
39
+ - name: default
30
40
  EOH
31
41
  file 'README.md'
32
42
 
@@ -40,7 +50,63 @@ EOH
40
50
  end # /context no secure vars
41
51
 
42
52
  context 'secure vars' do
43
- environment TRAVIS_SECURE_ENV_VARS: '1'
53
+ environment TRAVIS_SECURE_ENV_VARS: '1', KITCHEN_DOCKER_PASS: 'secret'
54
+ file 'test/docker/docker.pem', <<-EOH
55
+ -----BEGIN RSA PRIVATE KEY-----
56
+ Proc-Type: 4,ENCRYPTED
57
+ DEK-Info: AES-256-CBC,AE2AED599B3951C641A08DBEA9584DDC
58
+
59
+ jxqeiXKaX5vJvU9j5sN7ejykQ37dCd5xzuDMCNmEvS330shqQUA1k5NfexviQzHU
60
+ 3xaDiFwXloNJBY6bmOoYF/Jy23J6eDr0D5L6lvDFjMRObu2Qe1bRSY1cxL+ttoBz
61
+ GPUL8Zp8xKisne13XBS2BWLwj+tatE8e1UJNd17nc1kdDIlOaCpvHQ44DVhTRvsO
62
+ wg7oiCHdj7xNaZBzLzXTxuGywFtegPwKYZRIFpMIftk4BY0M0X2IZkpCAIZkhukz
63
+ tIDPqsJMGeVSAAdcQUH278IAnjlyrSfLWjRnTwJyla8M62uCl2bW12UrqmBYbfy1
64
+ twQGF9ZTAk/9SBGvoedhJ0+lwyG8KoBPToZn0q6M1WtGlvOzcZUhHnuJPQte8Ka8
65
+ sHLkIjKj6IQVu+WaMTFML7sKHgvum9mCgMFP3BVn01wUcuAby+tQuO6xlTuXiz07
66
+ yvsVBr5TpoVzhCsxOrt/pj/2P3FwqSs0Ww9CMpZOF2sMTAiKYqMCIqTGP+BuIBAO
67
+ 9Nn7RQcShxKvj/0SadUDO33XZlBJU3XY0lJkbHBS8znCOSGoabCeaxHlatdgTw2i
68
+ 6Fx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fEthBUTP+r53Yk5fabiDx25vDn041dhzFXJEHECG/KWafiQJ20oKPNe
100
+ 6EEhgZkfpN5v1xZl6I/NP7MqryMn5OdiZ2Sz6h4TR0hqgCNWz7TBLMqFIdcWUit+
101
+ rsd0bCmQuwWDv2rW9HqQd+D3xqHR18BBLNVvNy7QFgOyvAZel+uh+Gvopri3Czqe
102
+ sGVszNE1VjIRPSSqi92/tuwsfsnC/B0/X2OeXqDzlbP+UENrblW7OmSvRWYHdzwC
103
+ gwXKPnqk1Cqy8nreQaiNCHrmblDZ4/PsTjbGt/cjOgT5xfFYBqk5O7S1aUMwR2zh
104
+ wCpMX4SHzwX+Kxq1fkjlKN6DWbzJU/XTqp9MdHtsVPDLqhWU7v+rZ1+W1t1taQtC
105
+ 44y4GucYAoBqfqBfE5rd4k2oHHb+zkODoN8B96zoLpigbBd3eRpd7oAY5v0Ae94o
106
+ kZ24dsHjCt68RmJqriz8GHZY+0SjFRFand6FZaBTLndSnqfoncHgj1Cbq2E+pNQm
107
+ UbWRwbhlKYyN9bgK47cxD7r39KRh3jAkiTcMlscquirkZTuyWj5INTn/g2ICIg5w
108
+ -----END RSA PRIVATE KEY-----
109
+ EOH
44
110
 
45
111
  its(:stdout) { is_expected.to include 'Running task spec' }
46
112
  its(:stdout) { is_expected.to include 'Running task chef:foodcritic' }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-boiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable