Skip to content
Snippets Groups Projects
Commit 5b807d7d authored by llaffont's avatar llaffont
Browse files

Gitlab CI integration: fix config.ini initialization

parent 3497d759
Branches
Tags
No related merge requests found
......@@ -3,9 +3,9 @@ COVERAGE_DIR="coverage/$(basename "$PWD")/${CI_BUILD_REF_NAME}/${CI_BUILD_ID}"
source ./update.sh
cp config.ini.default config.ini
cp index.php.default index.php
sed -i s/sgbd.config.username =/sgbd.config.username = opac/g config.ini
sed -i s/sgbd.config.password =/sgbd.config.password = opac/g config.ini
sed -i s/sgbd.config.dbname =/sgbd.config.dbname = opac/g config.ini
sed -i "s/sgbd.config.username =/sgbd.config.username = opac/g" config.ini
sed -i "s/sgbd.config.password =/sgbd.config.password = opac/g" config.ini
sed -i "s/sgbd.config.dbname =/sgbd.config.dbname = opac/g" config.ini
touch local.php
phpunit -c tests/phpunit.xml --coverage-text=coverage.txt --coverage-html="../${COVERAGE_DIR}"
echo "coverage report at /${COVERAGE_DIR}"
......
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