Skip to content
Snippets Groups Projects
Commit cc884bf5 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #53508 handle variable mysql host during ci

parent d20f768c
Branches
Tags
4 merge requests!2080Sandbox detach zf from storm,!2061Master,!1997Dev#53508 ci with docker,!1917[WIP] Hotline#50082 mixed records links in loans list
Pipeline #212 failed with stage
in 3 minutes and 21 seconds
......@@ -11,7 +11,7 @@ before_script:
test:php5_latest:
image: php:5
script:
- bash build.sh $MYSQL_DATABASE root root
- bash build.sh $MYSQL_DATABASE root root mysql
except:
- tags
tags:
......
......@@ -2,8 +2,10 @@
DBNAME=$1
DBUSER=$2
DBPASS=$3
DBHOST=$4
source ./update.sh
cp config.ini.default config.ini
sed -i "s/sgbd.config.host = localhost/sgbd.config.host = $DBHOST/g" config.ini
sed -i "s/sgbd.config.username =/sgbd.config.username = $DBUSER/g" config.ini
sed -i "s/sgbd.config.password =/sgbd.config.password = $DBPASS/g" config.ini
sed -i "s/sgbd.config.dbname =/sgbd.config.dbname = $DBNAME/g" config.ini
......@@ -12,6 +14,7 @@ php scripts/upgrade_db.php
cd cosmogramme
cp config.ref.php config.php
sed -i "s/integration_server=localhost/integration_server=$DBHOST/g" config.php
sed -i "s/integration_user=root/integration_user=$DBUSER/g" config.php
sed -i "s/integration_pwd=root/integration_pwd=$DBPASS/g" config.php
sed -i "s/integration_base=opac3/integration_base=$DBNAME/g" config.php
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment