tox.ini: add a reusedb target

This commit is contained in:
Benjamin Dauvergne 2018-07-01 15:26:01 +02:00
parent df81098dff
commit 0f36a964ac
1 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ setenv =
authentic: DJANGO_SETTINGS_MODULE=authentic2.settings
rbac: DJANGO_SETTINGS_MODULE=django_rbac.test_settings
fast: FAST=--nomigrations
reusedb: REUSEDB=--reuse-db
usedevelop =
coverage: True
nocoverage: False
@ -44,8 +45,8 @@ deps =
pytz
commands =
./getlasso.sh
authentic: py.test {env:FAST:} {env:COVERAGE:} {posargs:tests/ --random}
rbac: py.test {env:FAST:} {env:COVERAGE:} {posargs:tests_rbac/}
authentic: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {posargs:tests/ --random}
rbac: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {posargs:tests_rbac/}
coverage: mv coverage.xml coverage-{envname}.xml
coverage-dj18-authentic-pg: mv htmlcov htmlcov-coverage-dj18-authentic-pg
coverage-dj18-rbac-pg: mv htmlcov htmlcov-coverage-dj18-rbac-pg