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:
parent
08ff9d7422
commit
b6fa5f5b33
27
ci/ci_runner.sh
Executable file
27
ci/ci_runner.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
WD=${CWD}
|
||||
|
||||
$WORKSPACE/ci/create_config.sh || { echo 'Failed to create the configuration.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/run_python_tests.sh || { echo 'Error detected when running the Python tests.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/run_jasmine_tests.sh || { echo 'Error detected when running the Jasmine tests.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/build_docs.sh || { echo 'Failed to build the documentation.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/build_runtime_qt4.sh || { echo 'Failed to build the QT4 runtime.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/build_runtime_qt5.sh || { echo 'Failed to build the QT5 runtime.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/build_pip_wheel.sh || { echo 'Failed to build the PIP wheel.' ; exit 1; }
|
||||
cd $WD
|
||||
|
||||
$WORKSPACE/ci/build_tarballs.sh || { echo 'Failed to build the tarballs.' ; exit 1; }
|
||||
cd $WD
|
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
|
Loading…
Reference in New Issue
Block a user