Skip to content

Commit 311f06d

Browse files
ikidnapmyselfclaude
andcommitted
ci: explicitly start MySQL service before waiting for it
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4432f86 commit 311f06d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.scrutinizer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ build:
1111
override:
1212
- command: cp .env.example .env
1313
- command: php artisan key:generate
14-
- command: until mysql -h 127.0.0.1 -u root -e "SELECT 1" >/dev/null 2>&1; do sleep 1; done
15-
- command: mysql -h 127.0.0.1 -u root -e "CREATE DATABASE IF NOT EXISTS \`swinn-test\`;"
14+
- command: sudo service mysql start || true
15+
- command: until mysqladmin -u root ping --silent 2>/dev/null; do sleep 1; done
16+
- command: mysql -u root -e "CREATE DATABASE IF NOT EXISTS \`swinn-test\`;"
1617
- command: php artisan migrate --force
1718
- command: php artisan passport:install --no-interaction
1819
- command: vendor/bin/phpunit

0 commit comments

Comments
 (0)