Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • dh_installsystemd
  • group-filter
  • master
  • template-unit
  • v0.1.0
  • v0.1.1
  • v0.2.0
  • v0.2.1
8 results

Target

Select target project
  • uffd/uffd-ldapd
  • russ/uffd-ldapd
2 results
Select Git revision
  • dh_installsystemd
  • group-filter
  • master
  • template-unit
  • v0.1.0
  • v0.1.1
  • v0.2.0
  • v0.2.1
8 results
Show changes
Commits on Source (2)
image: registry.git.cccv.de/uffd/docker-images/buster image: registry.git.cccv.de/uffd/docker-images/bookworm
variables: variables:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
APT_API_URL: https://packages.cccv.de APT_API_URL: https://packages.cccv.de
APT_REPO: uffd APT_REPO: uffd
PYLINT_PIN: pylint~=2.10.0 PYLINT_PIN: pylint~=2.16.2
before_script: before_script:
- python3 -V - python3 -V
...@@ -13,7 +13,6 @@ before_script: ...@@ -13,7 +13,6 @@ before_script:
- uname -a - uname -a
- python3 -m pylint --version - python3 -m pylint --version
- python3 -m coverage --version - python3 -m coverage --version
- echo "${CI_COMMIT_TAG}" | grep -qE "v[0-9]+[.][0-9]+[.][0-9]+.*" && export PACKAGE_VERSION="${CI_COMMIT_TAG#v}" || export PACKAGE_VERSION="${CI_COMMIT_SHA}"
.build: .build:
stage: build stage: build
...@@ -62,6 +61,22 @@ linter:bullseye: ...@@ -62,6 +61,22 @@ linter:bullseye:
reports: reports:
codequality: codeclimate.json codequality: codeclimate.json
linter:bookworm:
image: registry.git.cccv.de/uffd/docker-images/bookworm
stage: test
script:
- pip3 install $PYLINT_PIN pylint-gitlab # this force-updates jinja2 and some other packages!
- pip3 install -r requirements.txt
- python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter 'uffd-ldapd' > codeclimate.json
- python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter 'uffd-ldapd' > pylint.html
- python3 -m pylint --rcfile .pylintrc --output-format=text 'uffd-ldapd'
artifacts:
when: always
paths:
- pylint.html
reports:
codequality: codeclimate.json
test:package:apt:buster: test:package:apt:buster:
image: registry.git.cccv.de/uffd/docker-images/buster image: registry.git.cccv.de/uffd/docker-images/buster
stage: test stage: test
...@@ -80,6 +95,15 @@ test:package:apt:bullseye: ...@@ -80,6 +95,15 @@ test:package:apt:bullseye:
dependencies: dependencies:
- build:apt - build:apt
test:package:apt:bookworm:
image: registry.git.cccv.de/uffd/docker-images/bookworm
stage: test
script:
- apt update
- apt -y install ./*.deb
dependencies:
- build:apt
.publish: .publish:
stage: deploy stage: deploy
rules: rules:
...@@ -96,5 +120,6 @@ publish:apt: ...@@ -96,5 +120,6 @@ publish:apt:
- echo Update published repo for all distros - 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}/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}/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: dependencies:
- build:apt - build:apt
...@@ -380,13 +380,6 @@ max-line-length=160 ...@@ -380,13 +380,6 @@ max-line-length=160
# Maximum number of lines in a module. # Maximum number of lines in a module.
max-module-lines=1000 max-module-lines=1000
# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator
# Allow the body of a class to be on the same line as the declaration if body # Allow the body of a class to be on the same line as the declaration if body
# contains single statement. # contains single statement.
single-line-class-stmt=no single-line-class-stmt=no
...@@ -507,5 +500,5 @@ min-public-methods=2 ...@@ -507,5 +500,5 @@ min-public-methods=2
# Exceptions that will emit a warning when being caught. Defaults to # Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception". # "BaseException, Exception".
overgeneral-exceptions=BaseException, overgeneral-exceptions=builtin.BaseException,
Exception builtin.Exception
...@@ -326,6 +326,6 @@ def main(socket_address, socket_path, socket_fd, api_url, api_user, api_secret, ...@@ -326,6 +326,6 @@ def main(socket_address, socket_path, socket_fd, api_url, api_user, api_secret,
server.serve_forever() server.serve_forever()
if __name__ == '__main__': if __name__ == '__main__':
# Pylint does not seem to understand the click's decorators # Pylint does not seem to understand click's decorators
# pylint: disable=unexpected-keyword-arg,no-value-for-parameter # pylint: disable=unexpected-keyword-arg,no-value-for-parameter
main(auto_envvar_prefix='SERVER') main(auto_envvar_prefix='SERVER')