Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-ldapserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uffd
python-ldapserver
Commits
9ea574bd
Commit
9ea574bd
authored
1 year ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
CI testing for Debian Bookworm
parent
5b16f046
No related branches found
No related tags found
No related merge requests found
Pipeline
#24605
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+54
-14
54 additions, 14 deletions
.gitlab-ci.yml
with
54 additions
and
14 deletions
.gitlab-ci.yml
+
54
−
14
View file @
9ea574bd
image
:
registry.git.cccv.de/uffd/docker-images/b
uster
image
:
registry.git.cccv.de/uffd/docker-images/b
ookworm
variables
:
DEBIAN_FRONTEND
:
noninteractive
GIT_SUBMODULE_STRATEGY
:
normal
PYTHONPATH
:
deps/ldapalchemy
APT_API_URL
:
https://packages.cccv.de
APT_REPO
:
uffd
PYLINT_PIN
:
pylint~=2.16.2
...
...
@@ -80,14 +79,27 @@ 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
-
python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter ldapserver > codeclimate.json
-
python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter ldapserver > pylint.html
-
python3 -m pylint --rcfile .pylintrc --output-format=text ldapserver
artifacts
:
when
:
always
paths
:
-
pylint.html
reports
:
codequality
:
codeclimate.json
unittests:buster
:
image
:
registry.git.cccv.de/uffd/docker-images/buster
stage
:
test
script
:
-
python3-coverage run --include 'ldapserver/*.py' -m pytest --junitxml=report.xml ||
true
-
python3-coverage report -m
-
python3-coverage html
-
python3-coverage xml
artifacts
:
when
:
always
paths
:
...
...
@@ -95,20 +107,14 @@ unittests:buster:
-
htmlcov
expose_as
:
'
Coverage
Report'
reports
:
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
junit
:
report.xml
coverage
:
'
/^TOTAL.*\s+(\d+\%)$/'
unittests:bullseye
:
image
:
registry.git.cccv.de/uffd/docker-images/bullseye
stage
:
test
script
:
-
python3-coverage run --include 'ldapserver/*.py' -m pytest --junitxml=report.xml ||
true
#- python3-coverage report -m
-
python3-coverage html
#- python3-coverage xml
artifacts
:
when
:
always
paths
:
...
...
@@ -116,11 +122,28 @@ unittests:bullseye:
-
htmlcov
expose_as
:
'
Coverage
Report'
reports
:
#coverage_report:
# coverage_format: cobertura
# path: coverage.xml
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 'ldapserver/*.py' -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+\%)$/'
test:package:pip:buster
:
image
:
registry.git.cccv.de/uffd/docker-images/buster
...
...
@@ -138,6 +161,14 @@ test:package:pip:bullseye:
dependencies
:
-
build:pip
test:package:pip:bookworm
:
image
:
registry.git.cccv.de/uffd/docker-images/bookworm
stage
:
test
script
:
-
pip3 install dist/*.tar.gz
dependencies
:
-
build:pip
test:package:apt:buster
:
image
:
registry.git.cccv.de/uffd/docker-images/buster
stage
:
test
...
...
@@ -154,6 +185,14 @@ test:package:apt:bullseye:
dependencies
:
-
build:apt
test:package:apt:bookworm
:
image
:
registry.git.cccv.de/uffd/docker-images/bookworm
stage
:
test
script
:
-
apt -y install ./*.deb
dependencies
:
-
build:apt
.publish
:
stage
:
deploy
rules
:
...
...
@@ -178,6 +217,7 @@ 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/uffd/buster"'
-
'
curl
--user
"${APTLY_API_USER}:${APTLY_API_PW}"
-X
PUT
-H
"Content-Type:
application/json"
--data
"{
}"
"${APT_API_URL}/api/publish/uffd/bullseye"'
-
'
curl
--user
"${APTLY_API_USER}:${APTLY_API_PW}"
-X
PUT
-H
"Content-Type:
application/json"
--data
"{
}"
"${APT_API_URL}/api/publish/uffd/bookworm"'
dependencies
:
-
build:apt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment