Check that all po/pot files are valid
Perform minimal checks on po and pot files so that no broken files can get imported. Change-Id: I24e8543006830d0b0b1781bc2746b8eac700a971 Co-Authored-By: Clark Boylan <clark.boylan@gmail.com> Related-Bug: #1299349
This commit is contained in:
parent
7035032e08
commit
ad3eb2e385
3
tox.ini
3
tox.ini
@ -13,6 +13,7 @@ deps =
|
|||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py test --slowest --testr-args="{posargs}"
|
commands = python setup.py test --slowest --testr-args="{posargs}"
|
||||||
|
whitelist_externals = bash
|
||||||
|
|
||||||
[testenv:integration]
|
[testenv:integration]
|
||||||
setenv =
|
setenv =
|
||||||
@ -30,6 +31,8 @@ downloadcache = ~/cache/pip
|
|||||||
commands =
|
commands =
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
{toxinidir}/tools/config/check_uptodate.sh
|
{toxinidir}/tools/config/check_uptodate.sh
|
||||||
|
# Check that .po and .pot files are valid:
|
||||||
|
bash -c "find sahara -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user