From d08c43f3d5d837b4f31cc2dd45ef8f497ca2d880 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 16 Nov 2018 16:35:06 +0200 Subject: [PATCH] build.yml: Functioning build Finally got this working after testing the manifest manually a few times on the web UI. --- build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build.yml b/build.yml index cf0bc71..f45b39b 100644 --- a/build.yml +++ b/build.yml @@ -1,12 +1,21 @@ 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 - - build: | + pipenv install --dev + - test: | cd dspace-statistics-api pipenv run pytest