Skip to content

Instantly share code, notes, and snippets.

@tomliversidge
Created February 17, 2017 10:07
Show Gist options
  • Save tomliversidge/3acf1039e3610ad0ed9c36e8029587b7 to your computer and use it in GitHub Desktop.
Save tomliversidge/3acf1039e3610ad0ed9c36e8029587b7 to your computer and use it in GitHub Desktop.
circleci database
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
MIX_ENV: "ci"
services:
- postgresql
database:
override:
- createdb adatabasename
- echo "CREATE ROLE ausername WITH UNENCRYPTED PASSWORD 'apassword' LOGIN CREATEDB;" | psql -U postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment