1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-24 21:02:46 +02:00

.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:
2019-02-07 17:25:19 +02:00
parent f738b8029b
commit 842f80036f

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