-
Notifications
You must be signed in to change notification settings - Fork 604
Conversation
…pec tests for python::default.
@@ -0,0 +1,7 @@ | |||
rvm: | |||
- 1.9.3 | |||
- 2.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to test this? I would only expect it to work on the ruby in omnibus chef (and when I add test-kitchen support, you want just a single build in the matrix).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different people install Chef different ways. There's also backwards compatibility to think about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this just makes it much more complex to handle test-kitchen later, since we don't want to run those twice. Can probably make it work with some kind of env var magic (create another matrix axis for TEST_TYPE=spec,kitchen, and have the build script run the correct commands in the correct places).
I've not really played much with chefspec in favor of test kitchen, any major reason to go this way? |
My understanding, as I've not implemented I think of |
There are no community cookbook guidelines as Opscode's policies hold no sway here :-) The problem I've had with chefspec (and why I don't use it personally) is that it mocks out a lot of Chef internally, which fails with Poise-style cookbooks and their multi-level resource structure. |
You can create more complex build matrixes that would effectively exercise both |
test-kitchen is a little different since it doesn't use the local system at all, it just spins up Rackspace instances and talks to them via SSH :-) This looks good for now though, and having a template for a hybrid chefspec/TK travis run is something I want to do anyway. |
Add initial support for chefspec.
Let me know if you need/want any help/input. I need to add |
.travis.yml
.Gemfile
.libraries/matchers.rb
for chefspec.python::default
.