mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Testing CI - .travis - print surefire reports + setup_database script
This commit is contained in:
@@ -13,6 +13,7 @@ before_script:
|
||||
- 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:
|
||||
- EBEAN_DB=h2
|
||||
|
||||
Regular → Executable
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "\n=== SETUP DATABASE ===\n"
|
||||
|
||||
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;'
|
||||
|
||||
Reference in New Issue
Block a user