Skip to content

Commit 572afd5

Browse files
committed
Add Scrutinizer config
Note: Using a fork of ocular, as scrutinizer/ocular is not compatible with Symfony ^7.0. @see scrutinizer-ci/ocular#64
1 parent 8d93ac4 commit 572afd5

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.scrutinizer.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
build:
2+
environment:
3+
php:
4+
version: 8.3.13
5+
ini:
6+
'xdebug.mode': 'coverage'
7+
nodes:
8+
analysis:
9+
project_setup:
10+
override:
11+
- 'true'
12+
tests:
13+
override:
14+
- php-scrutinizer-run
15+
- command: vendor/bin/phpunit --coverage-clover=coverage.clover
16+
- command: vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
17+
checks:
18+
php: true
19+
tools:
20+
external_code_coverage:
21+
timeout: 900

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"rector/rector": "^2.0",
3434
"rregeer/phpunit-coverage-check": "^0.3.1",
3535
"shipmonk/composer-dependency-analyser": "^1.5",
36-
"symfony/property-access": "^7.0"
36+
"symfony/property-access": "^7.0",
37+
"uma/ocular": "^2.0"
3738
},
3839
"autoload": {
3940
"psr-4": {

0 commit comments

Comments
 (0)