Skip to content

Instantly share code, notes, and snippets.

@ryanjones
Created March 6, 2013 22:20
Show Gist options
  • Save ryanjones/5103650 to your computer and use it in GitHub Desktop.
Save ryanjones/5103650 to your computer and use it in GitHub Desktop.
Create db/user for test db in travis yml
before_script:
- psql -c 'CREATE USER the_user WITH CREATEDB;' -U postgres
- psql -c 'CREATE database the_db_test;' -U postgres
- psql -c 'ALTER DATABASE the_db_test OWNER TO the_user' -U postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment