Move .travis setup into a rake task

This commit moves the travis setup into the prepare rake task for easier
test suite runs.