Travis CI Setup for Plain Old Ruby
I recently wanted to setup some automated testing for a mini project I was working on. I was using regular Ruby and wanted to try working with Travis CI. For public projects, this is a great free resource which I cannot recommend enough.
They have a decent amount of documentation on how to setup your project. However, it took me longer than I thought necessary to get a basic Ruby project configured.
In the end, it came down to needing three things:
The
rakegem present in either aGemfileor*.gemspecfileA
.travis.ymlfile
1 2 3 4 | |
- A
Rakefilewith a default task to run the tests
1 2 3 4 5 6 7 8 9 10 11 12 | |
Just drop those two files into your project directory and you are ready to experience the fun of CI.