Update CI script output for parsing with the Log Parser plugin in Jenkins

This commit is contained in:
Dave Page
2017-03-31 12:45:56 -04:00
parent 7a1bb8863a
commit 4e50c186df
10 changed files with 24 additions and 45 deletions

View File

@@ -1,16 +1,14 @@
#!/bin/sh
echo "################################################################################"
echo "Extracting, merging and compiling strings..."
echo "################################################################################"
echo "EXECUTING: Compile messages"
echo
cd $WORKSPACE/web
. $WORKSPACE/pgadmin-venv/bin/activate
pybabel extract -F babel.cfg -o pgadmin/messages.pot pgadmin || { echo 'Failed to extract messages from the source code.' ; exit 1; }
pybabel extract -F babel.cfg -o pgadmin/messages.pot pgadmin || { echo 'ERROR: 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 update -i pgadmin/messages.pot -d pgadmin/translations || { echo 'ERROR: Failed to update message catalogs from the template.' ; exit 1; }
pybabel compile -d pgadmin/translations || { echo 'Failed to compile the message catalogs.' ; exit 1
pybabel compile -d pgadmin/translations || { echo 'ERROR: Failed to compile the message catalogs.' ; exit 1