Suffisait de lire la doc Travis aussi...

Doc:
http://docs.travis-ci.com/user/ci-environment/#Environment-variables
Exemple:
https://github.com/pimterry/heroku-sinatra-project-template/blob/master/
.travis.yml