mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-26 08:08:19 +01:00
build.yml: Functioning build
Finally got this working after testing the manifest manually a few times on the web UI.
This commit is contained in:
parent
819f8e6b0d
commit
d08c43f3d5
13
build.yml
13
build.yml
@ -1,12 +1,21 @@
|
|||||||
image: archlinux
|
image: archlinux
|
||||||
packages:
|
packages:
|
||||||
- python-pipenv
|
- python-pipenv
|
||||||
|
- postgresql
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~alanorth/dspace-statistics-api
|
- https://git.sr.ht/~alanorth/dspace-statistics-api
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- 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
|
cd dspace-statistics-api
|
||||||
pipenv install
|
pipenv install --dev
|
||||||
- build: |
|
- test: |
|
||||||
cd dspace-statistics-api
|
cd dspace-statistics-api
|
||||||
pipenv run pytest
|
pipenv run pytest
|
||||||
|
Loading…
Reference in New Issue
Block a user