X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=.gitlab-ci.yml;h=ad63ee2b930e8adb55be3d3727d41d721c203e19;hb=789124aae8798173ffa1711c4851e83b4b4f976a;hp=9a39e1364c31a060204e4d5b3ec30eff895c7922;hpb=e20b5bb3d83ad8630f85163df308270b1d0189cd;p=mpd-sima.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a39e13..ad63ee2 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,31 +24,39 @@ stages: smoketest: stage: test script: - - pip install pytest-cov requests - - py.test -q --cov=sima tests + - pip install requests python-musicpd sphinx - python setup.py test # build wheel and source - python setup.py bdist_wheel sdist + # manual and HTML documentation + - sphinx-build -d ./build/doctrees doc/source -b man ./build/man/ + - sphinx-build -d ./build/doctrees doc/source -b html ./build/html/ # 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 -vinstall: +unittests: stage: test script: - # test virtualenv install - - python3 ./vinstall.py - # smoke test - - ./vmpd-sima --help + - 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: - expire_in: 1 hour + when: always + reports: + junit: report.xml tag_release: stage: build