New issue 287: Detect if we're running on Travis https://bitbucket.org/hpk42/tox/issues/287/detect-if-were-running-on-travis
Vitor Baptista: Hi, The same way we can do `[testenv:jenkins]` to customize the environment for jenkins, it should be easy to do `[testenv:travis]`. Travis sets the environment variable `TRAVIS=true` by default (http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables). My use-case for this is to run coveralls only when running on travis. There are a few workarounds, as in https://stackoverflow.com/questions/32757765/conditional-commands-in-tox-tox-travis-ci-and-coveralls, but they involve running a small python script. It would be much cleaner if Tox supported it, and as it already does something similar for Jenkins, it would be trivial. If you think it's useful, I'd be happy to prepare a pull request. Cheers, Vitor. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit