Skip to content

Commit 89bb047

Browse files
committed
fix(ci): use direct Scrutinizer MySQL service address
1 parent 714e49b commit 89bb047

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.scrutinizer.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ build:
9090
- composer install -o --no-interaction --no-progress --prefer-dist --classmap-authoritative
9191

9292
# 🧠 Warmup DB (skip timing problems)
93-
- command: php tests/bootstrap/prepare_api_mysql.php
93+
- command: >
94+
env
95+
API_DB_HOST="${SERVICE_MYSQL_IP:-127.0.0.1}"
96+
DB_HOST="${SERVICE_MYSQL_IP:-127.0.0.1}"
97+
php tests/bootstrap/prepare_api_mysql.php
9498
idle_timeout: 600
9599
96100
# ⚙️ Dynamic config
@@ -115,6 +119,9 @@ build:
115119
stop_on_failure: true
116120
override:
117121
- command: >
122+
env
123+
API_DB_HOST="${SERVICE_MYSQL_IP:-127.0.0.1}"
124+
DB_HOST="${SERVICE_MYSQL_IP:-127.0.0.1}"
118125
php -d pcov.enabled=1
119126
-d pcov.directory=src
120127
vendor/bin/phpunit

0 commit comments

Comments
 (0)