mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-18 14:55:09 +01:00
Extend tox setup to include core only testing
This commit is contained in:
10
tox.ini
10
tox.ini
@@ -1,11 +1,12 @@
|
||||
[tox]
|
||||
skipsdist = true
|
||||
usedevelop = true
|
||||
envlist = py{35,36,37,38}-dj{2X}
|
||||
envlist = py{35,36,37,38}-{all}
|
||||
|
||||
[testenv]
|
||||
setenv =
|
||||
DJANGO_SETTINGS_MODULE = settings
|
||||
all: DJANGO_SETTINGS_MODULE = tests.settings_all
|
||||
core: DJANGO_SETTINGS_MODULE = tests.settings_core
|
||||
basepython =
|
||||
py35: python3.5
|
||||
py36: python3.6
|
||||
@@ -13,8 +14,9 @@ basepython =
|
||||
py38: python3.8
|
||||
deps=
|
||||
coverage
|
||||
dj2X: Django>=2.0,<3.0
|
||||
Django>=2.0,<3.0
|
||||
install_command = pip install -e ".[testing]" -U {opts} {packages}
|
||||
commands =
|
||||
coverage run runtests.py -v 2
|
||||
all: coverage run runtests.py -v 2
|
||||
core: coverage run runtests.py allianceauth.authentication.tests.test_app_settings -v 2
|
||||
coverage report -m
|
||||
|
||||
Reference in New Issue
Block a user