mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
16 lines
375 B
Bash
Executable File
16 lines
375 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
TRAVIS_BUILD_DIR="${TRAVIS_BUILD_DIR:-$(dirname $(dirname $CURRENT_DIR))}"
|
|
|
|
echo -e "Init PostgreSQL database..."
|
|
|
|
echo "127.0.0.1:5432:postgres:postgres:postgres" > ~/.pgpass
|
|
chmod 600 ~/.pgpass
|
|
|
|
psql -h 127.0.0.1 -p 5432 -d postgres -U postgres -f .travis/pgsql.sql
|
|
|
|
echo -e "Done\n"
|
|
|
|
wait
|