chiark / gitweb /
use Babel to compile localizations and include in source tarball
[fdroidserver.git] / tests / complete-ci-tests
index 9792b5bfa6ee0df02d84e595301ac8487c6865e4..1959f858da8f420ca4a861bef2bd3ded881061d0 100755 (executable)
@@ -63,14 +63,20 @@ 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
 . $WORKSPACE/env/bin/activate
 # workaround https://github.com/pypa/setuptools/issues/937
-pip3 install setuptools==33.1.1
-pip3 install dist/fdroidserver-*.tar.gz
+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 setuptools==33.1.1
-pip3 install -e $WORKSPACE
-python3 setup.py install
+pip3 install --quiet setuptools==33.1.1 Babel
+pip3 install --quiet -e $WORKSPACE
+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