What is the correct way of passing in an environment variable into SBT so that it can be accessed using Specs2? (And then retrieving the value in Specs2.) The environment variable will contain an API key to use for testing.
It needs to be an environment variable to work with Travis CI's encrypted environment variable functionality[1]
My setup:
- SBT 0.13.0
- Specs2 2.3.4
- Travis CI
Edit: bonus points if somebody can link to an open-source repo that does this. There must be a few!