mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 17:31:07 +03:00
use Babel to compile localizations and include in source tarball
python3-babel was also included in the gitlab-ci docker image:
ffc08dbc1d
This commit is contained in:
parent
57c3c60f0e
commit
49bd5a6462
4 changed files with 71 additions and 19 deletions
|
@ -63,7 +63,10 @@ fi
|
|||
#------------------------------------------------------------------------------#
|
||||
# test building the source tarball, then installing it
|
||||
cd $WORKSPACE
|
||||
python3 setup.py sdist
|
||||
python3 setup.py compile_catalog sdist
|
||||
|
||||
# make sure translation files got compiled and included
|
||||
tar tzf dist/fdroidserver-*.tar.gz | grep locale/de/LC_MESSAGES/fdroidserver.mo
|
||||
|
||||
rm -rf $WORKSPACE/env
|
||||
$pyvenv $WORKSPACE/env
|
||||
|
@ -72,6 +75,9 @@ $pyvenv $WORKSPACE/env
|
|||
pip3 install --quiet setuptools==33.1.1
|
||||
pip3 install --quiet dist/fdroidserver-*.tar.gz
|
||||
|
||||
# make sure translation files were installed
|
||||
test -e $WORKSPACE/env/share/locale/de/LC_MESSAGES/fdroidserver.mo
|
||||
|
||||
# run tests in new pip+pyvenv install
|
||||
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||
|
||||
|
@ -83,9 +89,12 @@ rm -rf $WORKSPACE/env
|
|||
$pyvenv $WORKSPACE/env
|
||||
. $WORKSPACE/env/bin/activate
|
||||
# workaround https://github.com/pypa/setuptools/issues/937
|
||||
pip3 install --quiet setuptools==33.1.1
|
||||
pip3 install --quiet setuptools==33.1.1 Babel
|
||||
pip3 install --quiet -e $WORKSPACE
|
||||
python3 setup.py install
|
||||
python3 setup.py compile_catalog install
|
||||
|
||||
# make sure translation files were installed
|
||||
test -e $WORKSPACE/env/share/locale/de/LC_MESSAGES/fdroidserver.mo
|
||||
|
||||
# run tests in new pip+pyvenv install
|
||||
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue