1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-12 16:16:04 +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

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