1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-09-28 21:14:18 +02:00
dspace-statistics-api/build.yml
Alan Orth d08c43f3d5 build.yml: Functioning build
Finally got this working after testing the manifest manually a few
times on the web UI.
2019-02-07 17:09:48 +02:00

22 lines
720 B
YAML

image: archlinux
packages:
- python-pipenv
- postgresql
sources:
- https://git.sr.ht/~alanorth/dspace-statistics-api
tasks:
- setup: |
id
psql --version
sudo su - postgres -c "initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'"
sudo systemctl start postgresql
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
pipenv install --dev
- test: |
cd dspace-statistics-api
pipenv run pytest