From 1d04db0ded46336bb21f67984c7f0aa63637862c Mon Sep 17 00:00:00 2001 From: Javinator9889 Date: Sun, 17 May 2020 13:52:41 +0200 Subject: [PATCH] Updated .gitlab-ci.yml --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0fac23f..d644c4f 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,12 @@ cache: before_script: - python -V # Print out python version for debugging - apt update - - apt install -y --no-install-recommends libchromaprint-tools ffmpeg libpq-dev git + - apt install -y --no-install-recommends libchromaprint-tools ffmpeg libpq-dev git postgresql + - pg_ctlcluster 11 main start + - su - postgres + - psql -c "CREATE DATABASE youtubemd;" + - psql -c "CREATE USER $DATABASE_USER WITH ENCRYPTED PASSWORD '$DATABASE_PASSWORD';" + - psql -c "GRANT ALL PRIVILEGES ON DATABASE youtubemd TO $DATABASE_USER"; - git clone https://github.com/beetbox/pyacoustid.git && cd pyacoustid - python setup.py install - cd .. && rm -rf pyacoustid/