figaro icon indicating copy to clipboard operation
figaro copied to clipboard

Travis configuration

Open laserlemon opened this issue 12 years ago • 7 comments

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.

laserlemon avatar Apr 20 '12 11:04 laserlemon

Still like this. :+1:

laserlemon avatar Aug 04 '13 22:08 laserlemon

what is the current state of the travis branch? it sounds like it does work

ghost avatar Sep 02 '13 11:09 ghost

How bout this?

miharekar avatar Nov 11 '13 10:11 miharekar

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 avatar Jan 11 '14 00:01 sheerun

@sheerun What do you mean this is not relevant to secure environment variables? That's what this issue is about.

laserlemon avatar Jan 11 '14 15:01 laserlemon

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.

laserlemon avatar Jan 11 '14 15:01 laserlemon

:+1: I already forgot what I meant there, unfortunately :)

sheerun avatar Aug 09 '14 01:08 sheerun