diff --git a/build.sh b/build.sh index 069c28656b7eeacd5fcf4386a722e8e106bef6d3..0b5d611865ce06f89cf7a5ddba1836a66302c31e 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,12 @@ 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 php scripts/upgrade_db.php -phpunit -c tests/phpunit.xml --exclude-group no-ci + +cd cosmogramme +cp config.ref.php config.php +sed -i "s/integration_user=root/integration_user=opac/g" config.php +sed -i "s/integration_pwd=root/integration_pwd=opac/g" config.php +sed -i "s/integration_base=opac3/integration_base=opac/g" config.php +cd .. + +phpunit -c tests/phpunit.xml --exclude-group no-ci && cd cosmogramme/tests && phpunit --exclude-group no-ci