Backported travis.yml to 0.2-stable branch