mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add message catalog builds to CI, and run all tests from a runner script to enable test/build addition purely from the source tree.
This commit is contained in:
15
ci/update_messages.sh
Executable file
15
ci/update_messages.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "################################################################################"
|
||||
echo "Extracting, merging and compiling strings..."
|
||||
echo "################################################################################"
|
||||
echo
|
||||
|
||||
. $WORKSPACE/pgadmin-venv/bin/activate
|
||||
cd $WORKSPACE/web
|
||||
|
||||
pybabel extract -F babel.cfg -o pgadmin/messages.pot pgadmin || { echo 'Failed to extract messages from the source code.' ; exit 1; }
|
||||
|
||||
pybabel update -i pgadmin/messages.pot -d pgadmin/translations || { echo 'Failed to update message catalogs from the template.' ; exit 1; }
|
||||
|
||||
pybabel compile -d pgadmin/translations || { echo 'Failed to compile the message catalogs.' ; exit 1
|
||||
Reference in New Issue
Block a user