From 70b089b96559a9870464de7eadec8c9ed07612f0 Mon Sep 17 00:00:00 2001 From: Javinator9889 Date: Sun, 17 May 2020 13:58:18 +0200 Subject: [PATCH] Updated .gitlab-ci.yml - included stages --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c37670..0751498 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,10 +24,10 @@ before_script: - apt update - apt install -y --no-install-recommends libchromaprint-tools ffmpeg libpq-dev git postgresql sudo - pg_ctlcluster 11 main start - - sudo -u postgres -i - - 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"; + - su - postgres + - psql -U postgres -c "CREATE DATABASE youtubemd;" + - psql -U postgres -c "CREATE USER $DATABASE_USER WITH ENCRYPTED PASSWORD '$DATABASE_PASSWORD';" + - psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE youtubemd TO $DATABASE_USER"; - exit - git clone https://github.com/beetbox/pyacoustid.git && cd pyacoustid - python setup.py install