- From: Jeffrey Hulten <
>
- To:
- Subject: [chef] Re: application builds/ci involving Chef
- Date: Sat, 26 Jan 2013 20:29:30 -0800
On Jan 26, 2013, at 7:59 PM, Gourav Shah
<
>
wrote:
>
>
>
Is anyone here doing application builds (either yourself or for devs) that
>
involve any of the following:
>
>
-Local (workstation) testing of a developed app with Chef housing
>
configuration files
>
>
For local development with chef managing configs, you could try using
>
vagrant + chef
Soon...
>
-Application bundling with ant, maven, groovy, scripts, whatever that also
>
includes parallel check-ins to Chef code?
>
-CI testing of an application that builds an artifact but also has
>
configurations in Chef?
>
I have used Jenkins + chef. You could also add capistrano in the mix for
>
deployment.
I am building out our Jenkins testing of cookbooks as we speak. We use
berkshelf to install to vendor cookbooks with dependencies, then run RSpec /
Chefspec to test them and Foodcritic to ensure they meet our standards.
Our script looks like this (assuming a job named "cookbook-[COOKBOOK NAME]",
i.e. "cookbook-users")
COOKBOOK=${JOB_NAME#cookbook-}
cd $WORKSPACE
set -x
bundle install --without development --deployment
bundle exec berks install --path vendor/cookbooks
bundle exec rspec --format CI::Reporter::RSpec
bundle exec foodcritic $WORKSPACE/vendor/cookbooks
By including ci-reporter in my gem list I can get rspec to generate JUnit
style reports and use those to define health of the jobs.
>
>
Thanks
>
Gourav
--
Jeffrey Hulten
Principal Consultant at Automated Labs
206-853-5216
Skype: jeffhulten
- [chef] application builds/ci involving Chef, Sascha Bates, 01/26/2013
- [chef] Re: application builds/ci involving Chef, Gourav Shah, 01/26/2013
- [chef] Re: application builds/ci involving Chef, Jeffrey Hulten, 01/26/2013
- [chef] Re: Re: application builds/ci involving Chef, Sascha Bates, 01/26/2013
- [chef] Re: Re: Re: application builds/ci involving Chef, Jesse Campbell, 01/27/2013
- [chef] Re: Re: Re: application builds/ci involving Chef, John E. Vincent (lusis), 01/27/2013
- [chef] Re: Re: Re: application builds/ci involving Chef, John Dyer, 01/27/2013
- [chef] Re: Re: Re: application builds/ci involving Chef, Peter Donald, 01/28/2013
- [chef] Re: Re: Re: application builds/ci involving Chef, Adam Jacob, 01/28/2013
Archive powered by MHonArc 2.6.16.