Refactor run-travis.sh