From 7d4c8ccc93793cd98046fbb34e8fca1aa472a087 Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@cccv.de> Date: Thu, 19 Oct 2023 23:11:47 +0200 Subject: [PATCH] CI testing for Debian Bookworm --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2be6ab8..91f9c29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,21 @@ linter:bullseye: reports: codequality: codeclimate.json +linter:bookworm: + image: registry.git.cccv.de/uffd/docker-images/bookworm + stage: test + script: + - pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! + - python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter 'uffd-socketmapd' > codeclimate.json + - python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter 'uffd-socketmapd' > pylint.html + - python3 -m pylint --rcfile .pylintrc --output-format=text 'uffd-socketmapd' + artifacts: + when: always + paths: + - pylint.html + reports: + codequality: codeclimate.json + unittests:buster: image: registry.git.cccv.de/uffd/docker-images/buster stage: test @@ -101,6 +116,27 @@ unittests:bullseye: junit: report.xml coverage: '/^TOTAL.*\s+(\d+\%)$/' +unittests:bookworm: + image: registry.git.cccv.de/uffd/docker-images/bookworm + stage: test + script: + - python3-coverage run --include 'uffd-socketmapd' -m pytest --junitxml=report.xml || true + #- python3-coverage report -m + - python3-coverage html + #- python3-coverage xml + artifacts: + when: always + paths: + - htmlcov/index.html + - htmlcov + expose_as: 'Coverage Report' + reports: + #coverage_report: + # coverage_format: cobertura + # path: coverage.xml + junit: report.xml + #coverage: '/^TOTAL.*\s+(\d+\%)$/' + .publish: stage: deploy rules: @@ -117,5 +153,6 @@ publish:apt: - echo Update published repo for all distros - 'curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X PUT -H "Content-Type: application/json" --data "{ }" "${APT_API_URL}/api/publish/${APT_REPO}/buster"' - 'curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X PUT -H "Content-Type: application/json" --data "{ }" "${APT_API_URL}/api/publish/${APT_REPO}/bullseye"' + - 'curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X PUT -H "Content-Type: application/json" --data "{ }" "${APT_API_URL}/api/publish/${APT_REPO}/bookworm"' dependencies: - build:apt -- GitLab