tox.ini: run compile_translations before tests
This commit is contained in:
parent
fca6602675
commit
058a1378ff
1
setup.py
1
setup.py
|
@ -56,6 +56,7 @@ class compile_translations(Command):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
|
os.environ.pop('DJANGO_SETTINGS_MODULE', None)
|
||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
|
|
||||||
for path, dirs, files in os.walk('bijoe'):
|
for path, dirs, files in os.walk('bijoe'):
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -45,6 +45,7 @@ deps =
|
||||||
django32: djangorestframework>=3.7
|
django32: djangorestframework>=3.7
|
||||||
django32: https://git.entrouvert.org/entrouvert/hobo/archive/main.tar.gz
|
django32: https://git.entrouvert.org/entrouvert/hobo/archive/main.tar.gz
|
||||||
commands =
|
commands =
|
||||||
|
python setup.py compile_translations
|
||||||
py3-django32: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe --cov-config=tox.ini --numprocesses {env:NUMPROCESSES:1} tests/}
|
py3-django32: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe --cov-config=tox.ini --numprocesses {env:NUMPROCESSES:1} tests/}
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
|
|
Loading…
Reference in New Issue