In the MIT lab, some of our engineers want to see if they are working on the Travis CI testing environment instead of prod, any idea on how to do this?
We would like to progmatatically determine if a particular Python script is running a testing environment.
I realize that this will require some heuristics, but that’s good enough for me. Are certain environment variables always set? Is the user name always the same?