Change Travis CI script to use rake task