We would like to distinguish public Travis and Travis@IBM in order to work around some differences in setup. I tried to do that with a condition in the jobs, e.g.:
if: env(TRAVIS_APP_HOST) = build.travis-ci.org
I can see that this variable is set differently in Travis@IBM. However, the condition does not evaluate to true even on the public Travis, presumably because it is not yet set at the time and on the node where the conditions are evaluated.
-
Is there a way currently to distinguish Travis environments (such as public Travis and Travis@IBM) in conditions on jobs?
-
If not, could you please add that?
-
I did not find a clear description as to which environment variables can be used in conditions on jobs. Could you please add that to the docs?
Example build: https://travis-ci.org/github/zhmcclient/python-zhmcclient/builds/678907192