mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
gitlab-ci: fix locale checks in pip_install job
This commit is contained in:
parent
965b544150
commit
3b84a82728
1 changed files with 4 additions and 3 deletions
|
|
@ -109,7 +109,6 @@ pip_install:
|
||||||
# setup venv to act as release build machine
|
# setup venv to act as release build machine
|
||||||
- python -m venv sdist-env
|
- python -m venv sdist-env
|
||||||
- . sdist-env/bin/activate
|
- . sdist-env/bin/activate
|
||||||
- ! (./setup.py compile_catalog 2>&1 | grep -F "error:")
|
|
||||||
- ./setup.py compile_catalog sdist
|
- ./setup.py compile_catalog sdist
|
||||||
- deactivate
|
- deactivate
|
||||||
- tar tzf dist/fdroidserver-*.tar.gz | grep locale/de/LC_MESSAGES/fdroidserver.mo
|
- tar tzf dist/fdroidserver-*.tar.gz | grep locale/de/LC_MESSAGES/fdroidserver.mo
|
||||||
|
|
@ -127,7 +126,7 @@ lint_format_safety_bandit_checks:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache bash dash ca-certificates python3
|
- apk add --no-cache bash dash ca-certificates python3
|
||||||
- python3 -m ensurepip
|
- python3 -m ensurepip
|
||||||
- pip3 install bandit pycodestyle pyflakes 'pylint<2.0' safety
|
- pip3 install Babel bandit pycodestyle pyflakes 'pylint<2.0' safety
|
||||||
- export EXITVALUE=0
|
- export EXITVALUE=0
|
||||||
- ./hooks/pre-commit || export EXITVALUE=1
|
- ./hooks/pre-commit || export EXITVALUE=1
|
||||||
- bandit
|
- bandit
|
||||||
|
|
@ -146,7 +145,9 @@ lint_format_safety_bandit_checks:
|
||||||
tests/*.TestCase
|
tests/*.TestCase
|
||||||
|| export EXITVALUE=1
|
|| export EXITVALUE=1
|
||||||
- apk add --no-cache gettext make
|
- apk add --no-cache gettext make
|
||||||
- make -C locale compile
|
- make -C locale compile || export EXITVALUE=1
|
||||||
|
- rm -f locale/*/*/*.mo
|
||||||
|
- pybabel compile --domain=fdroidserver --directory locale 2>&1 | (grep -F "error:" && exit 1) || true
|
||||||
- exit $EXITVALUE
|
- exit $EXITVALUE
|
||||||
|
|
||||||
fedora_latest:
|
fedora_latest:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue