use tox in update-locales.sh

The current script did not work, it works with tox.
This commit is contained in:
Benjamin Dauvergne 2021-07-30 14:10:30 +02:00
parent 1ed6387c62
commit a70a976608
2 changed files with 15 additions and 7 deletions

13
tox.ini
View File

@ -108,6 +108,19 @@ commands =
./getlasso3.sh
./authentic2-ctl {posargs:--help}
[testenv:update-locales]
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=authentic2.settings
deps =
psycopg2-binary
commands =
./getlasso3.sh
./authentic2-ctl makemessages
./authentic2-ctl compilemessages
[testenv:code-style]
skip_install = true
deps =

View File

@ -1,8 +1,3 @@
#!/bin/sh
VENV=/tmp/$USER-authentic2-update-locales
virtualenv $VENV
. $VENV/bin/activate
pip install -e .
./getlasso.sh
./authentic2-ctl makemessages
./authentic2-ctl compilemessages
tox -e update-locales