Moving logic to .travis.yml.