Move more logic over to the travis.sh script