figaro
figaro copied to clipboard
Travis configuration
When open sourcing a Rails app, Travis is a great (free) tool for testing the app. However, when using Figaro, the configuration sometimes needed for running the test suite (Pusher credentials, Stripe credentials, etc.) aren't included in the Travis build environment.
It would be nice to have a rake figaro:travis
Rake task to add the env
configuration to .travis.yml
. Currently, Travis only supports env
configurations in the clear but there's a pending pull request that would allow you to encrypt them.
This would swing the door wide open to distributed, private config, public app testing.
Still like this. :+1:
what is the current state of the travis branch? it sounds like it does work
How bout this?
I think this idea is awesome, but is not relevant to secure environment variables.
Btw. I had issues on CircleCI with environment variables on testing. It would be nice if you tested this service, maybe you discover new bug.
@sheerun What do you mean this is not relevant to secure environment variables? That's what this issue is about.
The Travis gem has come a long way, doing most of this itself. A simple command added to the figaro
binary could look like:
figaro travis:encrypt -e staging
and pass most of the options through to travis encrypt
.
:+1: I already forgot what I meant there, unfortunately :)