1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

View File

@ -78,9 +78,10 @@ jobs:
run: sudo ./v symlink run: sudo ./v symlink
- name: Set up pg database - name: Set up pg database
run: | run: |
brew tap homebrew/services # brew services start postgresql
brew services start postgresql # sleep 3
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 'select rolname from pg_roles'
psql -d postgres -c 'create database customerdb;' psql -d postgres -c 'create database customerdb;'
psql -d customerdb -f examples/database/pg/mydb.sql psql -d customerdb -f examples/database/pg/mydb.sql