Skip to content

Instantly share code, notes, and snippets.

@danp
Last active December 17, 2015 03:19
Show Gist options
  • Select an option

  • Save danp/5541936 to your computer and use it in GitHub Desktop.

Select an option

Save danp/5541936 to your computer and use it in GitHub Desktop.
Using postgression with travis-ci

Using postgression with travis-ci

Using postgression with travis-ci is easy if all you need to do is set $DATABASE_URL. Relying on the fact that things in the env section of .travis.yml are evaluated by a shell, you simply need:

env:
- DATABASE_URL=$(curl http://api.postgression.com)

in your .travis.yml and $DATABASE_URL will be set properly for each build and available to all other parts of the build (before_script, script, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment