Testing CI - .travis - try setup_database

This commit is contained in:
Robin Bygrave
2016-01-28 10:44:14 +13:00
parent 828c9ce128
commit afa4bc06d9
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -10,10 +10,10 @@ services:
- postgresql
before_script:
- psql -c 'create extension pgcrypto;' -U postgres
- psql -c 'create extension hstore;' -U postgres
- psql -c 'create extension postgis;' -U postgres
- psql -c 'create database unit;' -U postgres
# - psql -c 'create extension pgcrypto;' -U postgres
# - psql -c 'create extension hstore;' -U postgres
# - psql -c 'create extension postgis;' -U postgres
# - psql -c 'create database unit;' -U postgres
- ./.travis/setup_database
env:
+6 -6
View File
@@ -2,13 +2,13 @@
echo "\n=== SETUP DATABASE ===\n"
set -e
set -x
#set -e
#set -x
# Setup postgres' users and databases
sudo -u postgres psql -c "CREATE USER unit WITH PASSWORD 'unit';"
sudo -u postgres psql -c 'CREATE DATABASE test WITH OWNER unit;'
sudo -u postgres psql test -c 'CREATE EXTENSION hstore;'
sudo -u postgres psql test -c 'CREATE EXTENSION pgcrypto;'
sudo -u postgres psql test -c 'CREATE EXTENSION postgis;'
sudo -u postgres psql -c 'CREATE DATABASE unit WITH OWNER unit;'
sudo -u postgres psql unit -c 'CREATE EXTENSION hstore;'
sudo -u postgres psql unit -c 'CREATE EXTENSION pgcrypto;'
#sudo -u postgres psql test2 -c 'CREATE EXTENSION postgis;'
+2 -2
View File
@@ -110,8 +110,8 @@ datasource.ora.password=unit
datasource.ora.databaseUrl=jdbc:oracle:thin:@//127.0.0.1:1521/orcl
datasource.ora.databaseDriver=oracle.jdbc.driver.OracleDriver
datasource.pg.username=postgres
datasource.pg.password=
datasource.pg.username=unit
datasource.pg.password=unit
datasource.pg.databaseUrl=jdbc:postgresql://127.0.0.1:5432/unit
datasource.pg.databaseDriver=org.postgresql.Driver