-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test-kitchen integration tests to travis #5
Comments
Definitely possible and doable from what I've seen with other cookbooks. I just haven't had time to play. Only possible limitation for test kitchen might be that I'd have to pay for test instances to spin up. |
Do you have some links so I can have a look? On travis fair use policy too if you have (could not find much info on the subject). |
Ok, I looked into it... I don't think it can work as installation of vagrant + VM images would pass the build timeout of 50 minutes. So I had a look around and saw what is done on https://github.com/opscode-cookbooks/tomcat for instance. They are using test-kitchen drivers to start servers on the cloud. More details in https://github.com/opscode-cookbooks/tomcat/blob/master/TESTING.md . Had a try on Digital Ocean with a cookbook of mine. Turns out each test on each machine costs $0.01 . |
I can work on this. I've got a good template for running test-kitchen tests via travis, using a quarantined digital ocean account specifically for testing |
@patcon Currently I'm experimenting with Travis+Docker. I think, it will be more convenient. And it's free :) P.s. I was inspired by Chef's "database" cookbook: |
Nice! fwiw I had some issues that I had to work around when I was trying to test with docker before. Seems like the others have been addressed, but I think the Anyhow, just a heads up. and testing costs on IaaS are essentially negligible, so no need to count that as a strike against aws or DO if we think they might be more robust :) EDIT: possibly helpful link about init_package: sous-chefs/postgresql#247 (comment) |
If we really want, could even create a library cookbook codifying the detection from pleaserun, or this cookbook: |
@legal90 mind converting that branch into a PR so we could talk about what's working and what's not so far? Wondering whether I'm hitting the same issues as you on that branch :) |
@patcon OK. I'll do it tomorrow |
@patcon also worth considering poise-service as an alternative to chef-pleaserun. I've not personally used either but heard good things about poise-service. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi there,
Newbie question: I saw that Travis is used, but looking at the current .travis.yml it looks like only foodcritic and rubo tests are run.
Being a newbie I have no idea what the limits to Travis are... And a wild CI dream would be that the cookbook could be tested running a test-kitchen instance, at least to see whether it installs correctly on at least on flavor of linux, even runs Integration tests with serverspec and/or ATDD tests with Cucumber. Even wilder (unreasonable?) dream would be that it does this on all supported flavors of linux when pushed to master.
Possible?
The text was updated successfully, but these errors were encountered: