X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=.gitlab-ci.yml;h=228dcfbe8805279de22af36f8d20aa6b610da842;hb=2eeffda2917fb742d85c97cf93388f9678d9d9fd;hp=9a39e1364c31a060204e4d5b3ec30eff895c7922;hpb=e20b5bb3d83ad8630f85163df308270b1d0189cd;p=mpd-sima.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a39e13..228dcfb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ image: python:3 include: - local: .gitlab/gitlab-templates.yml - local: .gitlab/pylint.yml + - template: Security/SAST.gitlab-ci.yml variables: #XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" @@ -21,8 +22,7 @@ stages: smoketest: stage: test script: - - pip install pytest-cov requests - - py.test -q --cov=sima tests + - pip install requests python-musicpd - python setup.py test # build wheel and source - python setup.py bdist_wheel sdist @@ -37,6 +37,16 @@ smoketest: - dist/*.tar.gz - dist/*.zip +unittests: + stage: test + script: + - pip install pytest-cov requests python-musicpd + - py.test -q --cov=sima --junitxml=report.xml tests + artifacts: + when: always + reports: + junit: report.xml + vinstall: stage: test script: @@ -47,6 +57,12 @@ vinstall: artifacts: expire_in: 1 hour +sast: + variables: + SAST_EXCLUDED_ANALYZERS: brakeman, eslint, flawfinder, gosec, kubesec, nodejs-scan, + phpcs-security-audit, pmd-apex, security-code-scan, semgrep, sobelow, spotbugs + stage: test + tag_release: stage: build dependencies: