hmm if the environment is set on travis.yml ? have you tried running the test setting that environmental variable??