.build.yml: Fix PostgreSQL import

When building on sr.ht the default environment is the home directory
so we need to change to the source directory before trying to import
the SQL file.
This commit is contained in:
Alan Orth 2019-02-07 17:25:19 +02:00
parent f738b8029b
commit 842f80036f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 1 additions and 1 deletions

View File

@ -13,8 +13,8 @@ tasks:
createuser -U postgres dspacestatistics
psql -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
createdb -U postgres -O dspacestatistics --encoding=UNICODE dspacestatistics
psql -U postgres -d dspacestatistics < tests/dspacestatistics.sql
cd dspace-statistics-api
psql -U postgres -d dspacestatistics < tests/dspacestatistics.sql
pipenv install --dev
- test: |
cd dspace-statistics-api