From e1ae502725bfaced544285215a1e742aa3e028b8 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 20 Mar 2019 11:27:28 +0000 Subject: [PATCH] Delete the ci scripts that have be unmaintained and unused for some time now. --- ci/build_docs.sh | 17 -------------- ci/build_pip_wheel.sh | 17 -------------- ci/build_runtime_qt4.sh | 16 -------------- ci/build_runtime_qt5.sh | 16 -------------- ci/build_tarballs.sh | 17 -------------- ci/ci_runner.sh | 11 --------- ci/create_config.sh | 15 ------------- ci/run_feature_tests.sh | 49 ----------------------------------------- ci/run_jasmine_tests.sh | 10 --------- ci/run_python_tests.sh | 38 -------------------------------- ci/update_messages.sh | 14 ------------ 11 files changed, 220 deletions(-) delete mode 100755 ci/build_docs.sh delete mode 100755 ci/build_pip_wheel.sh delete mode 100755 ci/build_runtime_qt4.sh delete mode 100755 ci/build_runtime_qt5.sh delete mode 100755 ci/build_tarballs.sh delete mode 100755 ci/ci_runner.sh delete mode 100755 ci/create_config.sh delete mode 100755 ci/run_feature_tests.sh delete mode 100755 ci/run_jasmine_tests.sh delete mode 100755 ci/run_python_tests.sh delete mode 100755 ci/update_messages.sh diff --git a/ci/build_docs.sh b/ci/build_docs.sh deleted file mode 100755 index 30ca3d767..000000000 --- a/ci/build_docs.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Build docs" -echo - -cd ${WORKSPACE} - -. ${WORKSPACE}/pgadmin-venv/bin/activate - -SPHINX_VER="" -if [ "${PYTHON_VERSION}" = "2.6" -o "${PYTHON_VERSION}" = "3.3" ]; then - SPHINX_VER="==1.4.9" -fi - -${WORKSPACE}/pgadmin-venv/bin/pip install Sphinx${SPHINX_VER} || { echo 'ERROR: Failed to install Sphinx to build the docs.' ; exit 1; } - -make docs || { echo 'ERROR: Failed to build the documentation.' ; exit 1; } diff --git a/ci/build_pip_wheel.sh b/ci/build_pip_wheel.sh deleted file mode 100755 index 2e675d712..000000000 --- a/ci/build_pip_wheel.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Build PIP wheel" -echo - -cd ${WORKSPACE} - -. ${WORKSPACE}/pgadmin-venv/bin/activate - -SPHINX_VER="" -if [ "${PYTHON_VERSION}" = "2.6" -o "${PYTHON_VERSION}" = "3.3" ]; then - SPHINX_VER="==1.4.9" -fi - -${WORKSPACE}/pgadmin-venv/bin/pip install Sphinx${SPHINX_VER} || { echo 'ERROR: Failed to install Sphinx to build the PIP wheel.' ; exit 1; } - -make pip || { echo 'ERROR: Failed to build the PIP wheel.' ; exit 1; } \ No newline at end of file diff --git a/ci/build_runtime_qt4.sh b/ci/build_runtime_qt4.sh deleted file mode 100755 index 9ae069b27..000000000 --- a/ci/build_runtime_qt4.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Build runtime - QT4" -echo - -if [ ${PYTHON_VERSION:0:1} == "3" ]; then - CONFIG=/usr/local/python-${PYTHON_VERSION}/bin/python3-config -else - CONFIG=/usr/local/python-${PYTHON_VERSION}/bin/python-config -fi - -cd ${WORKSPACE}/runtime - -make clean -PATH=/usr/local/python-${PYTHON_VERSION}/bin:$PATH PYTHON_CONFIG=${CONFIG} /bin/qmake-qt4 || { echo 'ERROR: Failed to run the QT4 qmake step.' ; exit 1; } -make all || { echo 'ERROR: Failed to build the QT4 runtime.' ; exit 1; } diff --git a/ci/build_runtime_qt5.sh b/ci/build_runtime_qt5.sh deleted file mode 100755 index 384372bff..000000000 --- a/ci/build_runtime_qt5.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Build runtime - QT5" -echo - -if [ ${PYTHON_VERSION:0:1} == "3" ]; then - CONFIG=/usr/local/python-${PYTHON_VERSION}/bin/python3-config -else - CONFIG=/usr/local/python-${PYTHON_VERSION}/bin/python-config -fi - -cd ${WORKSPACE}/runtime - -make clean -PATH=/usr/local/python-${PYTHON_VERSION}/bin:$PATH PYTHON_CONFIG=${CONFIG} /bin/qmake-qt5 DEFINES+=PGADMIN4_USE_WEBKIT || { echo 'ERROR: Failed to run the QT5 qmake step.' ; exit 1; } -make all || { echo 'ERROR: Failed to build the QT4 runtime.' ; exit 1; } diff --git a/ci/build_tarballs.sh b/ci/build_tarballs.sh deleted file mode 100755 index 63d2cb9de..000000000 --- a/ci/build_tarballs.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Build Tarballs" -echo - -cd ${WORKSPACE} - -. ${WORKSPACE}/pgadmin-venv/bin/activate - -SPHINX_VER="" -if [ "${PYTHON_VERSION}" = "2.6" -o "${PYTHON_VERSION}" = "3.3" ]; then - SPHINX_VER="==1.4.9" -fi - -${WORKSPACE}/pgadmin-venv/bin/pip install Sphinx${SPHINX_VER} || { echo 'ERROR: Failed to install Sphinx to build the tarballs.' ; exit 1; } -cd ${WORKSPACE}/ -make src || { echo 'ERROR: Failed to build the tarballs.' ; exit 1; } \ No newline at end of file diff --git a/ci/ci_runner.sh b/ci/ci_runner.sh deleted file mode 100755 index 51b3ac99a..000000000 --- a/ci/ci_runner.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -${WORKSPACE}/ci/create_config.sh || { echo 'ERROR: Failed to create the configuration.' ; exit 1; } -${WORKSPACE}/ci/run_python_tests.sh || { echo 'ERROR: Error detected when running the Python tests.' ; exit 1; } -${WORKSPACE}/ci/run_jasmine_tests.sh || { echo 'ERROR: Error detected when running the Jasmine tests.' ; exit 1; } -${WORKSPACE}/ci/build_docs.sh || { echo 'ERROR: Failed to build the documentation.' ; exit 1; } -${WORKSPACE}/ci/build_runtime_qt4.sh || { echo 'ERROR: Failed to build the QT4 runtime.' ; exit 1; } -${WORKSPACE}/ci/build_runtime_qt5.sh || { echo 'ERROR: Failed to build the QT5 runtime.' ; exit 1; } -${WORKSPACE}/ci/update_messages.sh || { echo 'ERROR: Failed to update translation message catalogs.' ; exit 1; } -${WORKSPACE}/ci/build_pip_wheel.sh || { echo 'ERROR: Failed to build the PIP wheel.' ; exit 1; } -${WORKSPACE}/ci/build_tarballs.sh || { echo 'ERROR: Failed to build the tarballs.' ; exit 1; } diff --git a/ci/create_config.sh b/ci/create_config.sh deleted file mode 100755 index c964265f1..000000000 --- a/ci/create_config.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Create pgAdmin config" -echo - -cd ${WORKSPACE} - -cp ${JENKINS_HOME}/pgadmin-configs/config_local.py ${WORKSPACE}/web/config_local.py || { echo 'ERROR: Failed to create config_local.py.' ; exit 1; } -echo LOG_FILE = \"${WORKSPACE}/var/pgadmin4.log\" >> ${WORKSPACE}/web/config_local.py || { echo 'ERROR: Failed to create config_local.py.' ; exit 1; } -echo SESSION_DB_PATH = \"${WORKSPACE}/var/sessions\" >> ${WORKSPACE}/web/config_local.py || { echo 'ERROR: Failed to create config_local.py.' ; exit 1; } -echo STORAGE_DIR = \"${WORKSPACE}/var/storage\" >> ${WORKSPACE}/web/config_local.py || { echo 'ERROR: Failed to create config_local.py.' ; exit 1; } -echo SQLITE_PATH = \"${WORKSPACE}/var/pgadmin4.db\" >> ${WORKSPACE}/web/config_local.py || { echo 'ERROR: Failed to create config_local.py.' ; exit 1; } -echo TEST_SQLITE_PATH = \"${WORKSPACE}/var/pgadmin4.db\" >> ${WORKSPACE}/web/config_local.py || { echo 'ERROR: Failed to create config_local.py.' ; exit 1; } - -cp ${JENKINS_HOME}/pgadmin-configs/test_config.json ${WORKSPACE}/web/regression/test_config.json || { echo 'ERROR: Failed to copy the test configuration.' ; exit 1; } diff --git a/ci/run_feature_tests.sh b/ci/run_feature_tests.sh deleted file mode 100755 index a5eb9b39e..000000000 --- a/ci/run_feature_tests.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Feature tests" -echo - -echo "Starting virtual frame buffer..." -echo - -Xvfb -ac :99 -screen 0 1280x1024x16 & -FB_PID=$! -export DISPLAY=:99 - -echo "Creating Python ${PYTHON_VERSION} virtual environment..." -echo - -cd ${WORKSPACE}/ - -PYTHON_SUFFIX="" - -if [[ "${PYTHON_VERSION}" == 3* ]]; then - PYTHON_SUFFIX="3" -fi - -if [ "${PYTHON_VERSION}" == 2.6 -o "${PYTHON_VERSION}" == 3.3 ]; then - /usr/bin/virtualenv --no-wheel -p /usr/local/python-${PYTHON_VERSION}/bin/python${PYTHON_SUFFIX} ${WORKSPACE}/pgadmin-venv || { echo 'ERROR: Failed to create the Python virtual environment.' ; exit 1; } - . ${WORKSPACE}/pgadmin-venv/bin/activate || { echo 'ERROR: Failed to activate the Python virtual environment.' ; exit 1; } - ${WORKSPACE}/pgadmin-venv/bin/pip install wheel==0.29.0 || { echo 'ERROR: Failed to install wheel 0.29.0.' ; exit 1; } -else - /usr/bin/virtualenv -p /usr/local/python-${PYTHON_VERSION}/bin/python${PYTHON_SUFFIX} ${WORKSPACE}/pgadmin-venv || { echo 'ERROR: Failed to create the Python virtual environment.' ; exit 1; } - . ${WORKSPACE}/pgadmin-venv/bin/activate || { echo 'ERROR: Failed to activate the Python virtual environment.' ; exit 1; } -fi - -${WORKSPACE}/pgadmin-venv/bin/pip install -r requirements.txt || { echo 'ERROR: Failed to install the application requirements.' ; exit 1; } -${WORKSPACE}/pgadmin-venv/bin/pip install -r web/regression/requirements.txt || { echo 'ERROR: Failed to install the regression test requirements.' ; exit 1; } - -cd web -/usr/bin/yarn install || { echo 'ERROR: Failed to install the required Javascript modules.' ; exit 1; } -/usr/bin/yarn run bundle || { echo 'ERROR: Failed to bundle the Javascript code.' ; exit 1; } -cd ../ - -echo "Running regression tests..." -echo - -${WORKSPACE}/pgadmin-venv/bin/python ${WORKSPACE}/web/regression/runtests.py --pkg feature_tests || { echo 'ERROR: Error detected when running the Feature tests.' ; exit 1; } - -echo "Cleaning up..." -echo - -kill ${FB_PID} diff --git a/ci/run_jasmine_tests.sh b/ci/run_jasmine_tests.sh deleted file mode 100755 index b9de04959..000000000 --- a/ci/run_jasmine_tests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Jasmine tests" -echo - -cd ${WORKSPACE}/web/ - -/usr/bin/yarn install || { echo 'ERROR: Failed to install the required Javascript modules.' ; exit 1; } -/usr/bin/yarn run linter || { echo 'ERROR: Failed to lint the Javascript code.' ; exit 1; } -./node_modules/.bin/karma start --single-run || { echo 'ERROR: Error detected when running the Jasmine tests.' ; exit 1; } diff --git a/ci/run_python_tests.sh b/ci/run_python_tests.sh deleted file mode 100755 index f837397ac..000000000 --- a/ci/run_python_tests.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Python tests" -echo - -echo "Creating Python ${PYTHON_VERSION} virtual environment..." -echo - -cd ${WORKSPACE}/ - -PYTHON_SUFFIX="" - -if [[ "${PYTHON_VERSION}" == 3* ]]; then - PYTHON_SUFFIX="3" -fi - -if [ "${PYTHON_VERSION}" == 2.6 -o "${PYTHON_VERSION}" == 3.3 ]; then - /usr/bin/virtualenv --no-wheel -p /usr/local/python-${PYTHON_VERSION}/bin/python${PYTHON_SUFFIX} ${WORKSPACE}/pgadmin-venv || { echo 'ERROR: Failed to create the Python virtual environment.' ; exit 1; } - . ${WORKSPACE}/pgadmin-venv/bin/activate || { echo 'ERROR: Failed to activate the Python virtual environment.' ; exit 1; } - ${WORKSPACE}/pgadmin-venv/bin/pip install wheel==0.29.0 || { echo 'ERROR: Failed to install wheel 0.29.0.' ; exit 1; } -else - /usr/bin/virtualenv -p /usr/local/python-${PYTHON_VERSION}/bin/python${PYTHON_SUFFIX} ${WORKSPACE}/pgadmin-venv || { echo 'ERROR: Failed to create the Python virtual environment.' ; exit 1; } - . ${WORKSPACE}/pgadmin-venv/bin/activate || { echo 'ERROR: Failed to activate the Python virtual environment.' ; exit 1; } -fi - -${WORKSPACE}/pgadmin-venv/bin/pip install -r requirements.txt || { echo 'ERROR: Failed to install the application requirements.' ; exit 1; } -${WORKSPACE}/pgadmin-venv/bin/pip install -r web/regression/requirements.txt || { echo 'ERROR: Failed to install the regression test requirements.' ; exit 1; } - -echo "Running PEP-8 checks..." -echo - -make check-pep8 || { echo 'ERROR: Error detected when running the Python PEP-8 checks.' ; exit 1; } - -echo "Running regression tests..." -echo - -${WORKSPACE}/pgadmin-venv/bin/python ${WORKSPACE}/web/regression/runtests.py --exclude feature_tests || { echo 'ERROR: Error detected when running the Python tests.' ; exit 1; } - diff --git a/ci/update_messages.sh b/ci/update_messages.sh deleted file mode 100755 index 751ec63b3..000000000 --- a/ci/update_messages.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -echo "EXECUTING: Compile messages" -echo - -cd ${WORKSPACE}/web - -. ${WORKSPACE}/pgadmin-venv/bin/activate || { echo 'ERROR: Failed to activate the Python virtual environment.' ; 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 'ERROR: Failed to update message catalogs from the template.' ; exit 1; } - -pybabel compile -d pgadmin/translations || { echo 'ERROR: Failed to compile the message catalogs.' ; exit 1; }