Skip to content
Snippets Groups Projects
Verified Commit 4eda1188 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent c3f4961c
Branches
Tags
No related merge requests found
......@@ -65,6 +65,7 @@ function _execute_tests () {
# install/reset database for unit tests.
# options: [--fresh]
function _install_unit_test_database () {
DATABASE_NAME=$UNITTEST_DATABASE
if _db_exists "$SQL" "$DATABASE_NAME"; then
if [[ "$1" == "--fresh" ]] ; then
drop "$DATABASE_NAME" ;
......@@ -73,7 +74,7 @@ function _install_unit_test_database () {
fi
fi
sed "s/db_2_0/$UNITTEST_DATABASE/g" "$INSTALL_SQL_FILE" | $SQL
sed "s/db_2_0/$DATABASE_NAME/g" "$INSTALL_SQL_FILE" | $SQL
# crate test user
grant
......
......@@ -24,14 +24,21 @@
#apply all available patches.
set -e
. ./utils/patch_header.sh
echo "HERE3"
PATCHES="./patch*/patch.sh"
export UTILSPATH="./utils"
echo "HERE4"
for p in $PATCHES
do
echo "HERE5"
$p "$@" --patch=$p
done
echo "HERE6"
source ./utils/patch_header.sh
echo "HERE7"
cd ../
echo "HERE8"
./update_sql_procedures.sh
echo "HERE9"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment