Skip to content

Commit ff76fa6

Browse files
ikidnapmyselfclaude
andcommitted
ci: simplify Scrutinizer config following Laravel 13 convention
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 85e7b0a commit ff76fa6

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

.scrutinizer.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
build:
22
environment:
3-
ubuntu: '2204'
4-
php:
5-
version: '8.3'
6-
ini:
7-
memory_limit: '-1'
8-
mysql:
9-
version: '8.0'
3+
php: '8.3'
4+
mysql: true
105

116
dependencies:
12-
before:
13-
- mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;"
14-
- mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS \`swinn-test\`;"
15-
- php -r "file_exists('.env') || copy('.env.example', '.env');"
16-
- sed -i 's/DB_DATABASE=laravel/DB_DATABASE=swinn-test/' .env
17-
- sed -i 's/DB_PASSWORD=/DB_PASSWORD=root/' .env
18-
- composer install --no-ansi --no-interaction --no-scripts --prefer-dist
19-
- php artisan key:generate
20-
- php artisan migrate --force
21-
- php artisan passport:install --no-interaction
7+
override:
8+
- composer install --no-interaction --prefer-dist
229

2310
tests:
2411
override:
25-
- php-scrutinizer-run
12+
- command: cp .env.example .env
13+
- command: php artisan key:generate
14+
- command: mysql -u root -e "CREATE DATABASE IF NOT EXISTS \`swinn-test\`;"
15+
- command: php artisan migrate --force
16+
- command: php artisan passport:install --no-interaction
2617
- command: vendor/bin/phpunit
2718
coverage:
2819
file: build/logs/clover.xml
2920
format: clover
21+
environment:
22+
DB_CONNECTION: mysql
23+
DB_HOST: 127.0.0.1
24+
DB_PORT: 3306
25+
DB_DATABASE: swinn-test
26+
DB_USERNAME: root
27+
DB_PASSWORD: ''
3028

3129
checks:
3230
php:

0 commit comments

Comments
 (0)