I have a travis-ci build setup to build a PHP project. When the build runs, it fails during the test run stating:
Environment var: GettyImagesApi_ApiKey was not found in the environment (Exception)
This happened previously and I deleted the environment variable, re-created it, then re-ran the build and it stopped throwing an exception. Now it has started throwing the exception again and deleting and re-creating the environment variable is not helping.
By the way, this environment variable is set in the GUI, not in the .travis.yml
file.
After doing a few more builds, I've noticed that sometimes I see this in the build log:
Setting environment variables from repository settings
$ export GettyImagesApi_ApiSecret=[secure]
$ export GettyImagesApi_UserName=[secure]
$ export GettyImagesApi_UserPassword=[secure]
$ export GettyImagesApi_ApiKey=[secure]
and of course, the environment variables are available. Sometimes I don't see those lines and then the environment variables don't exist.
What would cause the build to skip exporting the environment variables?