backport travis.yml fix to 0.5.x branch