Skip to content

Commit

Permalink
add step to build translation catalogs to test for failures
Browse files Browse the repository at this point in the history
  • Loading branch information
trbs committed Jul 5, 2017
1 parent a1d5007 commit 3c7cb9c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ matrix:
env: TOXENV=precommit
- python: 3.6
env: TOXENV=safety
- python: 3.6
env: TOXENV=compile-catalog
- python: 2.7
env: TOXENV=py27-dj18
- python: 2.7
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ help:
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "clean-test - remove test and coverage artifacts"
@echo "compile-catalog - compile translation catalogs"
@echo "test - run tests quickly with the default Python"
@echo "coverage - check code coverage quickly with the default Python"
@echo "install - install the package to the active Python's site-packages"
Expand All @@ -28,6 +29,11 @@ clean-test:
rm -f .coverage
rm -fr htmlcov/

compile-catalog:
for loc in django_extensions/locale/*; do \
python setup.py compile_catalog --directory django_extensions/locale/ --locale $$(basename $$loc) --domain django || exit 1; \
done

test:
python setup.py test

Expand Down
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ deps =
safety
commands = safety check --full-report

[testenv:compile-catalog]
whitelist_externals =
make
deps =
Babel
commands =
make compile-catalog

[testenv:py27-flake8]
deps =
flake8
Expand Down

0 comments on commit 3c7cb9c

Please sign in to comment.