1 # Official language image. Look for the different tagged releases at:
2 # https://hub.docker.com/_/python
6 - local: .gitlab/gitlab-templates.yml
7 - local: .gitlab/pylint.yml
8 - template: Jobs/SAST.gitlab-ci.yml
11 #XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
12 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
13 SAST_EXCLUDED_ANALYZERS: brakeman, flawfinder, kubesec, mobsf, nodejs-scan,
14 phpcs-security-audit, pmd-apex, sobelow, spotbugs
27 - pip install requests python-musicpd sphinx
28 - python setup.py test
29 # build wheel and source
30 - python setup.py bdist_wheel sdist
31 # manual and HTML documentation
32 - sphinx-build -d ./build/doctrees doc/source -b man ./build/man/
33 - sphinx-build -d ./build/doctrees doc/source -b html ./build/html/
35 - pip install dist/*.whl
38 - TRACE=y ./mpd-sima -d --pid ./mpd-sima.pid -l ./mpd-sima.log
40 - test -f ./mpd-sima.pid && kill $(cat ./mpd-sima.pid)
53 - pip install pytest-cov requests python-musicpd
54 - py.test -q --cov=sima --junitxml=report.xml tests
55 coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
72 name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"