mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Testing CI - .travis - try setup_database
This commit is contained in:
+4
-4
@@ -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:
|
||||
|
||||
@@ -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;'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user