Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd-socketmapd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
uffd-socketmapd
Commits
1aeea544
Commit
1aeea544
authored
3 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
CI jobs for linter and unit testing
parent
bcdcdd11
No related branches found
No related tags found
No related merge requests found
Pipeline
#8023
passed
3 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+66
-0
66 additions, 0 deletions
.gitlab-ci.yml
with
66 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
66
−
0
View file @
1aeea544
image
:
registry.git.cccv.de/uffd/docker-images/buster
variables
:
DEBIAN_FRONTEND
:
noninteractive
GIT_SUBMODULE_STRATEGY
:
normal
PYLINT_PIN
:
pylint~=2.10.0
before_script
:
-
python3 -V
-
lsb_release -a
-
uname -a
-
python3 -m pylint --version
-
python3 -m coverage --version
linter:bullseye
:
image
:
registry.git.cccv.de/uffd/docker-images/bullseye
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 'server.py' > codeclimate.json
-
python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter 'server.py' > pylint.html
-
python3 -m pylint --rcfile .pylintrc --output-format=text 'server.py'
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 'server.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
:
#cobertura: 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 'server.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
:
cobertura
:
coverage.xml
junit
:
report.xml
coverage
:
'
/^TOTAL.*\s+(\d+\%)$/'
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