X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=.gitlab-ci.yml;h=ad63ee2b930e8adb55be3d3727d41d721c203e19;hb=789124aae8798173ffa1711c4851e83b4b4f976a;hp=195423eef5542b2da4108e14bfb2b61a304ccb6f;hpb=eead40921859927953e73327840bd6ff090b77fe;p=mpd-sima.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 195423e..ad63ee2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,11 +5,13 @@ image: python:3 include: - local: .gitlab/gitlab-templates.yml - local: .gitlab/pylint.yml - - template: Security/SAST.gitlab-ci.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: @@ -27,7 +29,8 @@ smoketest: # build wheel and source - python setup.py bdist_wheel sdist # manual and HTML documentation - - python setup.py build_sphinx + - 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 @@ -49,27 +52,12 @@ unittests: script: - 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: junit: report.xml -vinstall: - stage: test - script: - # test virtualenv install - - python3 ./vinstall.py - # smoke test - - ./vmpd-sima --help - 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: