ci: fix homebrew-service (PostgreSQL) do manual start for now. (#3638)

pull/3640/head^2
joe-conigliaro 2020-02-03 23:29:23 +11:00 committed by GitHub
parent 1e21e76788
commit da8c7eb0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -78,9 +78,10 @@ jobs:
run: sudo ./v symlink
- name: Set up pg database
run: |
brew tap homebrew/services
brew services start postgresql
sleep 3
# brew services start postgresql
# sleep 3
# do manual start for now. TODO: look at homebrew-services postgresql config
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
psql -d postgres -c 'select rolname from pg_roles'
psql -d postgres -c 'create database customerdb;'
psql -d customerdb -f examples/database/pg/mydb.sql