Skip to content

Commit

Permalink
travis.py: sql split
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Apr 15, 2013
1 parent e1bd8a5 commit c0f8d2b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions bin/travis.py
Expand Up @@ -22,13 +22,17 @@ def shell(arg, split_on='~'):
shell('sudo~apt-get~update~-qq')
shell('sudo~apt-get~install~solr-jetty~postgresql-%s' % PG_VERSION)

sql = '''
CREATE USER ckanuser WITH PASSWORD 'pass';
CREATE USER readonlyuser WITH PASSWORD 'pass';
sql = "CREATE USER ckanuser WITH PASSWORD 'pass';"
shell('psql~-U~postgres~-c~%s' % sql)

sql = "CREATE USER readonlyuser WITH PASSWORD 'pass';"
shell('psql~-U~postgres~-c~%s' % sql)

CREATE DATABASE ckan_test WITH OWNER ckanuser;
CREATE DATABASE ckan_test_datastore WITH OWNER ckanuser;
'''
sql = "CREATE DATABASE ckan_test WITH OWNER ckanuser;"
shell('psql~-U~postgres~-c~%s' % sql)

sql = "CREATE DATABASE ckan_test_datastore WITH OWNER ckanuser;"
shell('psql~-U~postgres~-c~%s' % sql)

shell('psql~-U~postgres~-c~%s' % sql)

Expand Down

0 comments on commit c0f8d2b

Please sign in to comment.