Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated .gitlab-ci.yml - included stages
  • Loading branch information
Javinator9889 committed May 17, 2020
1 parent 1d04db0 commit faf7067
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .gitlab-ci.yml
Expand Up @@ -16,26 +16,32 @@ cache:
- .cache/pip
- venv/

stages:
- test

before_script:
- python -V # Print out python version for debugging
- apt update
- apt install -y --no-install-recommends libchromaprint-tools ffmpeg libpq-dev git postgresql
- apt install -y --no-install-recommends libchromaprint-tools ffmpeg libpq-dev git postgresql sudo
- pg_ctlcluster 11 main start
- su - postgres
- 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";
- exit
- git clone https://github.com/beetbox/pyacoustid.git && cd pyacoustid
- python setup.py install
- cd .. && rm -rf pyacoustid/
- pip install -r YouTubeMDBot/requirements.txt
- mkdir -p /run/user/$(id -u $(whoami))

test:pylint:
stage: test
script:
- pip install pylint
- pylint -j 0 --exit-zero --ignored-classes=_socketobject *.py YouTubeMDBot

test:
stage: test
script:
- python -m unittest $(pwd)/YouTubeMDBot/tests/*.py

0 comments on commit faf7067

Please sign in to comment.