Add minimal test suite

See #291. You can review the latest Travis build at https://travis-ci.org/federicobond/homebrew-versions

The code is a cleaned up version of what is running in the main repo. Any feedback is welcome!