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
1b24f840
Commit
1b24f840
authored
3 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Added dummy test and test CI job
parent
7b59e62e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#7003
failed
3 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+12
-0
12 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+22
-2
22 additions, 2 deletions
.gitlab-ci.yml
tests/test_dummy.py
+8
-0
8 additions, 0 deletions
tests/test_dummy.py
with
42 additions
and
2 deletions
.gitignore
+
12
−
0
View file @
1b24f840
docs/_build/
dist/
# coverage
.coverage
htmlcov
coverage.xml
# pytest
report.xml
# pylint
pylint.html
codeclimate.json
*.egg-info
__pycache__
*.pyc
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
22
−
2
View file @
1b24f840
...
...
@@ -2,7 +2,7 @@ linter:
stage
:
test
image
:
python:3.7
script
:
-
pip
3
install pylint-gitlab
# this force-updates jinja2 and some other packages!
-
pip install pylint-gitlab
-
python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter src/ldapserver > codeclimate.json ||
true
-
python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter src/ldapserver > pylint.html ||
true
-
python3 -m pylint --rcfile .pylintrc --output-format=text src/ldapserver
...
...
@@ -14,8 +14,28 @@ linter:
reports
:
codequality
:
codeclimate.json
test
:
stage
:
test
image
:
python:3.7
script
:
-
pip install pytest coverage
-
PYTHONPATH=src coverage run --include 'src/*.py' -m pytest --junitxml=report.xml
-
coverage report -m
-
coverage html
-
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+\%)$/'
build-docs
:
stage
:
build
stage
:
deploy
image
:
python:3.7
script
:
-
pip install Sphinx sphinx-rtd-theme
...
...
This diff is collapsed.
Click to expand it.
tests/test_dummy.py
0 → 100644
+
8
−
0
View file @
1b24f840
import
unittest
# Test if imports work in tests
from
ldapserver.dn
import
DN
class
TestDummy
(
unittest
.
TestCase
):
def
test_dummy
(
self
):
DN
(
'
cn=foobar
'
)
==
DN
(
'
CN=foobar
'
)
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