ci: remove django 2.2 targets (#86402)
This commit is contained in:
parent
c200edb746
commit
aa9bdc9cbe
|
@ -1,5 +0,0 @@
|
||||||
[run]
|
|
||||||
dynamic_context = test_function
|
|
||||||
|
|
||||||
[html]
|
|
||||||
show_contexts = True
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e -x
|
|
||||||
env
|
|
||||||
if [ -f /var/lib/jenkins/pylint.django.rc ]; then
|
if [ -f /var/lib/jenkins/pylint.django.rc ]; then
|
||||||
PYLINT_RC=/var/lib/jenkins/pylint.django.rc
|
PYLINT_RC=/var/lib/jenkins/pylint.django.rc
|
||||||
elif [ -f pylint.django.rc ]; then
|
elif [ -f pylint.django.rc ]; then
|
||||||
|
|
29
tox.ini
29
tox.ini
|
@ -1,22 +1,21 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = code-style,py3-django{2,3}2-coverage
|
envlist = py3,code-style
|
||||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
/bin/mv
|
/bin/mv
|
||||||
setenv =
|
setenv =
|
||||||
DJANGO_SETTINGS_MODULE=testsettings
|
|
||||||
PYTHONPATH=.
|
PYTHONPATH=.
|
||||||
SETUPTOOLS_USE_DISTUTILS=stdlib
|
DJANGO_SETTINGS_MODULE=testsettings
|
||||||
|
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
||||||
|
COVERAGE={tty::--cov --cov-append --cov-report xml --cov-report html --cov-context=test --cov-config=tox.ini}
|
||||||
coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc
|
coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc
|
||||||
usedevelop =
|
usedevelop =
|
||||||
coverage: true
|
coverage: true
|
||||||
deps =
|
deps =
|
||||||
django22: django>=2.2,<2.3
|
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
django22: psycopg2-binary<2.9
|
django>=3.2.12,<3.3
|
||||||
django32: django>=3.2.12,<3.3
|
|
||||||
mock<4
|
mock<4
|
||||||
httmock
|
httmock
|
||||||
pytest
|
pytest
|
||||||
|
@ -36,7 +35,7 @@ allowlist_externals =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
commands =
|
commands =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
py.test -o junit_suite_name={envname} --junit-xml=junit-{envname}.xml --random {env:COVERAGE:} {posargs:tests}
|
py.test {env:JUNIT:} {env:COVERAGE:} {posargs:tests}
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
@ -44,7 +43,10 @@ deps =
|
||||||
pylint<3
|
pylint<3
|
||||||
astroid<3
|
astroid<3
|
||||||
pylint-django
|
pylint-django
|
||||||
psycopg2<2.9
|
psycopg2-binary
|
||||||
|
allowlist_externals =
|
||||||
|
./getlasso3.sh
|
||||||
|
./pylint.sh
|
||||||
commands =
|
commands =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
./pylint.sh mellon
|
./pylint.sh mellon
|
||||||
|
@ -57,6 +59,8 @@ setenv =
|
||||||
PYTHONPATH=.:tests
|
PYTHONPATH=.:tests
|
||||||
deps =
|
deps =
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
|
allowlist_externals =
|
||||||
|
./getlasso3.sh
|
||||||
commands =
|
commands =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
django-admin {posargs:--help}
|
django-admin {posargs:--help}
|
||||||
|
@ -70,3 +74,12 @@ commands =
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
junit_family=legacy
|
junit_family=legacy
|
||||||
|
|
||||||
|
[coverage:run]
|
||||||
|
source =
|
||||||
|
mellon
|
||||||
|
tests
|
||||||
|
branch = True
|
||||||
|
|
||||||
|
[coverage:html]
|
||||||
|
show_contexts = True
|
||||||
|
|
Loading…
Reference in New Issue