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

WIP: pipeline

parent 1b6e724d
No related branches found
No related tags found
No related merge requests found
...@@ -31,11 +31,11 @@ function fail() { ...@@ -31,11 +31,11 @@ function fail() {
exit 1 exit 1
} }
UNITTEST_DATABASE=${UNITTEST_DATABASE-_caosdb_schema_unit_tests}; UNITTEST_DATABASE=${UNITTEST_DATABASE-_caosdb_schema_unit_tests}
# options: [--fresh] # options: [--fresh]
function runtests() { function runtests() {
DATABASE_NAME=$UNITTEST_DATABASE; DATABASE_NAME=$UNITTEST_DATABASE
_setup_mytap _setup_mytap
_install_unit_test_database $@ _install_unit_test_database $@
...@@ -207,8 +207,12 @@ function _db_exists() { ...@@ -207,8 +207,12 @@ function _db_exists() {
&& return 0 || return 1 && return 0 || return 1
} }
echo "HIER1"
. .config . .config
echo "HIER2"
INSTALL_SQL_FILE="db_2_0.sql" INSTALL_SQL_FILE="db_2_0.sql"
if [ -z $LOGIN_PATH ] ; then if [ -z $LOGIN_PATH ] ; then
MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT} MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT}
...@@ -217,9 +221,11 @@ if [ -z $LOGIN_PATH ] ; then ...@@ -217,9 +221,11 @@ if [ -z $LOGIN_PATH ] ; then
else else
MYSQL_CONNECTION="--login-path=$LOGIN_PATH" MYSQL_CONNECTION="--login-path=$LOGIN_PATH"
fi fi
echo "HIER3"
SQL="$MYSQL_CMD $MYSQL_CONNECTION" SQL="$MYSQL_CMD $MYSQL_CONNECTION"
echo "HIER4"
case $1 in case $1 in
"drop") drop $2 ;; "drop") drop $2 ;;
"grant") grant $2 ;; "grant") grant $2 ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment