I test my addons in a gitlab CI pipeline based on a docker container. Some of my tests failed, because no compiled translations files in my addon are available. The *.mo files are in the .gitignore file. What is the right way to compile the files during the install/setup phase? Have anyone a hint for me?
Update
an environment variable in my tox configuration was missing. I set zope_i18n_compile_mo_files
to True
and all is fine.
[testenv:test]
description = run the distribution tests
use_develop = true
skip_install = false
constrain_package_deps = True
set_env =
ROBOT_BROWSER=headlesschrome
zope_i18n_compile_mo_files=True