Reputation: 3742
This guide tells that several environment variable are available to all builds on Travis.
However my build fails because the lack of the TRAVIS
environment variable. (I have printed out the available variables and there is no TRAVIS in them.)
Here is my travis config.
What do I wrong?
Upvotes: 0
Views: 133
Reputation: 3742
The problem roots in tox. Tox clears environment variables. Use passenv=TRAVIS*
to pass the Travis-related environment variables.
passenv(SPACE-SEPARATED-GLOBNAMES)
New in version 2.0.
A list of wildcard environment variable names which shall be copied from the tox invocation environment to the test environment when executing test commands. If a specified environment variable doesn’t exist in the tox invocation environment it is ignored. You can use * and ? to match multiple environment variables with one name.
Upvotes: 1