nickjj / rolespec

A test library for testing Ansible roles
GNU General Public License v3.0
232 stars 20 forks source link

Testing by docker containers? #31

Closed le9i0nx closed 8 years ago

le9i0nx commented 8 years ago

How do you like the idea to use a docker containers for testing. Here is my example of it is raw but I think there is a sensible idea. https://github.com/le9i0nx/ansible-syncthing/blob/master/.travis.yml

nickjj commented 8 years ago

Did it end up working for you? I haven't tried this pattern personally.

le9i0nx commented 8 years ago

Yes satisfactory. Just my needs, also includes testing for different distributions, while only travis ubuntu. And in this form it is more clean install. Sometimes there are strange of event, but as long as I did not write it off on the elegance of the script.

nickjj commented 8 years ago

Nice, I'm sure someone will find it beneficial. You might even want to write a blog post about it.