Backport .travis.yml from master branch