ci: remove python2 support and testing
gitea/ldaptools/pipeline/head This commit looks good
Details
gitea/ldaptools/pipeline/head This commit looks good
Details
This commit is contained in:
parent
92f622d9c4
commit
4ba8bd85ff
|
@ -14,7 +14,7 @@ pipeline {
|
|||
utils.publish_coverage('coverage.xml')
|
||||
utils.publish_coverage_native('index.html')
|
||||
}
|
||||
junit '*_results.xml'
|
||||
mergeJunitResults()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
setup.py
2
setup.py
|
@ -63,7 +63,7 @@ setup(
|
|||
packages=find_packages('src'),
|
||||
package_dir={'': 'src'},
|
||||
include_package_data=True,
|
||||
install_requires=['python-ldap', 'six'],
|
||||
install_requires=['python-ldap>2', 'six'],
|
||||
entry_points={
|
||||
'console_scripts': ['ldapsync=ldaptools.ldapsync.cmd:main'],
|
||||
},
|
||||
|
|
19
tox.ini
19
tox.ini
|
@ -5,22 +5,29 @@
|
|||
|
||||
[tox]
|
||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/ldaptools/
|
||||
envlist = py2-coverage-ldap2,py{2,3}-coverage-ldap3
|
||||
envlist = py3
|
||||
|
||||
[testenv]
|
||||
usedevelop = true
|
||||
setenv =
|
||||
coverage: COVERAGE=--junit-xml=test_results.xml --cov=src --cov-report xml --cov-report html
|
||||
COVERAGE={tty::--cov --cov-append --cov-report xml --cov-report html --cov-context=test --cov-config=tox.ini}
|
||||
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
||||
deps =
|
||||
coverage
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-random
|
||||
ldap3: python-ldap>2
|
||||
ldap2: python-ldap<3
|
||||
commands =
|
||||
py.test {env:COVERAGE:} {posargs:--random tests}
|
||||
py.test {env:JUNIT:} {env:COVERAGE:} {posargs:--random tests}
|
||||
|
||||
|
||||
[pytest]
|
||||
junit_family=xunit2
|
||||
|
||||
[coverage:run]
|
||||
source =
|
||||
src
|
||||
tests
|
||||
branch = True
|
||||
|
||||
[coverage:html]
|
||||
show_contexts = True
|
||||
|
|
Loading…
Reference in New Issue