mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-26 08:08:19 +01: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:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user