Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 957802: Test new requirements in locale build
Browse files Browse the repository at this point in the history
In the TravisCI locale build, use the Python environment and install any
new requirements, rather than using the current Docker image and the old
requirements. This allows verification of updates for Jinja2 and related
libraries.
  • Loading branch information
jwhitlock committed Apr 24, 2018
1 parent b32d87f commit b77980e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -35,7 +35,8 @@ env:
- TOXENV=flake8
- TOXENV=docs
- TOXENV=locales
INSTALL_DOCKER_COMPOSE=1
CREATE_DB=kuma
INSTALL_PIPELINE=1
- TOXENV=docker
INSTALL_DOCKER_COMPOSE=1
UID=0
Expand Down
11 changes: 7 additions & 4 deletions tox.ini
Expand Up @@ -28,18 +28,21 @@ commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:locales]
whitelist_externals =
cat
docker-compose
make
git
deps = -rrequirements/dev.txt
changedir = locale
setenv =
COMPOSE_FILE = {toxinidir}/docker-compose.yml:{toxinidir}/docker-compose.test.yml
COMPOSE_PROJECT_NAME = localetox
GIT_PAGER = cat
# Test that locales are refreshed w/o error,
# then display diff only if messages changed
commands =
docker-compose run noext make localerefresh
make -C .. localerefresh
git diff -G "^msgid " templates/LC_MESSAGES
passenv =
DATABASE_URL
DJANGO_SETTINGS_MODULE
PIPELINE_*

[testenv:docker]
whitelist_externals = docker-compose
Expand Down

0 comments on commit b77980e

Please sign in to comment.