Make sure each build/test starts in the correct directory.

This commit is contained in:
Dave Page 2017-03-31 12:17:34 -04:00
parent b6fa5f5b33
commit ac1637f281
10 changed files with 15 additions and 20 deletions

View File

@ -5,6 +5,8 @@ echo "Building docs..."
echo "################################################################################"
echo
cd $WORKSPACE
. $WORKSPACE/pgadmin-venv/bin/activate
SPHINX_VER=""
@ -14,5 +16,4 @@ fi
$WORKSPACE/pgadmin-venv/bin/pip install Sphinx$SPHINX_VER
cd $WORKSPACE/
make docs

View File

@ -5,6 +5,8 @@ echo "Building PIP wheel..."
echo "################################################################################"
echo
cd $WORKSPACE
. $WORKSPACE/pgadmin-venv/bin/activate
SPHINX_VER=""
@ -14,5 +16,4 @@ fi
$WORKSPACE/pgadmin-venv/bin/pip install Sphinx$SPHINX_VER
cd $WORKSPACE/
make pip

View File

@ -6,6 +6,7 @@ echo "##########################################################################
echo
cd $WORKSPACE/runtime
make clean
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt4
make all

View File

@ -6,6 +6,7 @@ echo "##########################################################################
echo
cd $WORKSPACE/runtime
make clean
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt5 DEFINES+=PGADMIN4_USE_WEBKIT
make all

View File

@ -5,6 +5,8 @@ echo "Building Tarballs..."
echo "################################################################################"
echo
cd $WORKSPACE
. $WORKSPACE/pgadmin-venv/bin/activate
SPHINX_VER=""

View File

@ -1,27 +1,10 @@
#!/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

View File

@ -5,6 +5,8 @@ echo "Creating pgAdmin configuration..."
echo "################################################################################"
echo
cd $WORKSPACE
cp $JENKINS_HOME/pgadmin-configs/config_local.py $WORKSPACE/web/config_local.py
echo LOG_FILE = \"$WORKSPACE/var/pgadmin4.log\" >> $WORKSPACE/web/config_local.py
echo SESSION_DB_PATH = \"$WORKSPACE/var/sessions\" >> $WORKSPACE/web/config_local.py

View File

@ -6,5 +6,6 @@ echo "##########################################################################
echo
cd $WORKSPACE/web/
/bin/npm install
./node_modules/.bin/karma start --single-run

View File

@ -14,6 +14,8 @@ echo "Creating Python ${PYTHON_VERSION} virtual environment..."
echo "################################################################################"
echo
cd $WORKSPACE/
PYTHON_SUFFIX=""
if [[ "$PYTHON_VERSION" == 3* ]]; then

View File

@ -5,9 +5,10 @@ echo "Extracting, merging and compiling strings..."
echo "################################################################################"
echo
. $WORKSPACE/pgadmin-venv/bin/activate
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 update -i pgadmin/messages.pot -d pgadmin/translations || { echo 'Failed to update message catalogs from the template.' ; exit 1; }