X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=.gitlab-ci.yml;h=0ae3330bc704e3bac579e630abf63b85263a4c60;hb=d27e0375d52ce7b820ac523ddb96402f1cbdbeb4;hp=3bd74453b6319b76cf4da936777051a311a1ed43;hpb=406fd4576b5e8a5f8026a54018d57861fa546596;p=mpd-sima.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3bd7445..0ae3330 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,10 +5,13 @@ image: python:3 include: - local: .gitlab/gitlab-templates.yml - local: .gitlab/pylint.yml + - template: Jobs/SAST.gitlab-ci.yml variables: #XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache" + SAST_EXCLUDED_ANALYZERS: brakeman, flawfinder, kubesec, mobsf, nodejs-scan, + phpcs-security-audit, pmd-apex, sobelow, spotbugs cache: paths: @@ -21,26 +24,34 @@ stages: smoketest: stage: test script: - - pip install requests + - pip install requests python-musicpd sphinx - python setup.py test # build wheel and source - python setup.py bdist_wheel sdist + # manual and HTML documentation + - python setup.py build_sphinx # install - pip install dist/*.whl # smoke test - mpd-sima --help + - TRACE=y ./mpd-sima -d --pid ./mpd-sima.pid -l ./mpd-sima.log + - sleep 10 + - test -f ./mpd-sima.pid && kill $(cat ./mpd-sima.pid) artifacts: expire_in: 1 hour paths: - dist/*.whl - dist/*.tar.gz - dist/*.zip + - ./mpd-sima.pid + - ./mpd-sima.log unittests: stage: test script: - - pip install pytest-cov requests + - pip install pytest-cov requests python-musicpd - py.test -q --cov=sima --junitxml=report.xml tests + coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' artifacts: when: always reports: