Make sure each build/test starts in the correct directory.
parent
b6fa5f5b33
commit
ac1637f281
|
@ -5,6 +5,8 @@ echo "Building docs..."
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
. $WORKSPACE/pgadmin-venv/bin/activate
|
. $WORKSPACE/pgadmin-venv/bin/activate
|
||||||
|
|
||||||
SPHINX_VER=""
|
SPHINX_VER=""
|
||||||
|
@ -14,5 +16,4 @@ fi
|
||||||
|
|
||||||
$WORKSPACE/pgadmin-venv/bin/pip install Sphinx$SPHINX_VER
|
$WORKSPACE/pgadmin-venv/bin/pip install Sphinx$SPHINX_VER
|
||||||
|
|
||||||
cd $WORKSPACE/
|
|
||||||
make docs
|
make docs
|
||||||
|
|
|
@ -5,6 +5,8 @@ echo "Building PIP wheel..."
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
. $WORKSPACE/pgadmin-venv/bin/activate
|
. $WORKSPACE/pgadmin-venv/bin/activate
|
||||||
|
|
||||||
SPHINX_VER=""
|
SPHINX_VER=""
|
||||||
|
@ -14,5 +16,4 @@ fi
|
||||||
|
|
||||||
$WORKSPACE/pgadmin-venv/bin/pip install Sphinx$SPHINX_VER
|
$WORKSPACE/pgadmin-venv/bin/pip install Sphinx$SPHINX_VER
|
||||||
|
|
||||||
cd $WORKSPACE/
|
|
||||||
make pip
|
make pip
|
|
@ -6,6 +6,7 @@ echo "##########################################################################
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cd $WORKSPACE/runtime
|
cd $WORKSPACE/runtime
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt4
|
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt4
|
||||||
make all
|
make all
|
||||||
|
|
|
@ -6,6 +6,7 @@ echo "##########################################################################
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cd $WORKSPACE/runtime
|
cd $WORKSPACE/runtime
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt5 DEFINES+=PGADMIN4_USE_WEBKIT
|
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt5 DEFINES+=PGADMIN4_USE_WEBKIT
|
||||||
make all
|
make all
|
||||||
|
|
|
@ -5,6 +5,8 @@ echo "Building Tarballs..."
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
. $WORKSPACE/pgadmin-venv/bin/activate
|
. $WORKSPACE/pgadmin-venv/bin/activate
|
||||||
|
|
||||||
SPHINX_VER=""
|
SPHINX_VER=""
|
||||||
|
|
|
@ -1,27 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
WD=${CWD}
|
|
||||||
|
|
||||||
$WORKSPACE/ci/create_config.sh || { echo 'Failed to create the configuration.' ; exit 1; }
|
$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; }
|
$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; }
|
$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; }
|
$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; }
|
$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; }
|
$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; }
|
$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; }
|
$WORKSPACE/ci/build_tarballs.sh || { echo 'Failed to build the tarballs.' ; exit 1; }
|
||||||
cd $WD
|
|
|
@ -5,6 +5,8 @@ echo "Creating pgAdmin configuration..."
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
cp $JENKINS_HOME/pgadmin-configs/config_local.py $WORKSPACE/web/config_local.py
|
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 LOG_FILE = \"$WORKSPACE/var/pgadmin4.log\" >> $WORKSPACE/web/config_local.py
|
||||||
echo SESSION_DB_PATH = \"$WORKSPACE/var/sessions\" >> $WORKSPACE/web/config_local.py
|
echo SESSION_DB_PATH = \"$WORKSPACE/var/sessions\" >> $WORKSPACE/web/config_local.py
|
||||||
|
|
|
@ -6,5 +6,6 @@ echo "##########################################################################
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cd $WORKSPACE/web/
|
cd $WORKSPACE/web/
|
||||||
|
|
||||||
/bin/npm install
|
/bin/npm install
|
||||||
./node_modules/.bin/karma start --single-run
|
./node_modules/.bin/karma start --single-run
|
||||||
|
|
|
@ -14,6 +14,8 @@ echo "Creating Python ${PYTHON_VERSION} virtual environment..."
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
cd $WORKSPACE/
|
||||||
|
|
||||||
PYTHON_SUFFIX=""
|
PYTHON_SUFFIX=""
|
||||||
|
|
||||||
if [[ "$PYTHON_VERSION" == 3* ]]; then
|
if [[ "$PYTHON_VERSION" == 3* ]]; then
|
||||||
|
|
|
@ -5,9 +5,10 @@ echo "Extracting, merging and compiling strings..."
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
. $WORKSPACE/pgadmin-venv/bin/activate
|
|
||||||
cd $WORKSPACE/web
|
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 '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 'Failed to update message catalogs from the template.' ; exit 1; }
|
||||||
|
|
Loading…
Reference in New Issue