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:
Dave Page 2017-03-31 12:13:30 -04:00
parent 08ff9d7422
commit b6fa5f5b33
2 changed files with 42 additions and 0 deletions

27
ci/ci_runner.sh Executable file
View 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
View 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