Preserve TRAVIS and TRAVIS_* environment variables

Fixes #1030