travis-ci/travis-core — pull request #45 by laserlemon (2012-04-15 16:11:34+00:00)
Title: Secure "env" configuration

Hi guys,

I added the ability to public-key-encrypt the `env` configurations included in the build matrix. Here's why:

Let's I have an open source Rails app that depends on connecting to an external service such as GitHub or RubyGems. I configure my app to keep those credentials in `ENV` (a la Heroku). In order to fully test on Travis, I need to include those credentials in the build env without exposing them publicly in `.travis.yml`.

I borrowed a page from the Campfire notification configuration, where you can encrypt your credentials.

I also cleaned up a bit of the code surrounding SecureConfig and its relation to SslKey.

I think this will open Travis up to many more _public_ apps that rely on _private_ configuration. Thanks and I hope it helps!