-
Notifications
You must be signed in to change notification settings - Fork 4
/
.scrutinizer.yml
37 lines (36 loc) · 1.02 KB
/
.scrutinizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
checks:
php:
code_rating: true
duplication: true
build:
image: default-bionic
environment:
php: 8.1.12
variables:
XDEBUG_MODE: 'coverage'
nodes:
coverage:
services:
mariadb:
image: docker.io/library/mariadb:10.6.12
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
ports:
- 3306
ramdisks:
- /var/run/mysqld
dependencies:
before:
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
- sudo apt install -y ffmpeg exiftool
tests:
override:
- command: ./vendor/bin/phpunit --coverage-clover=build/coverage/clover.xml # Or "./vendor/bin/phpunit --coverage-clover=build/coverage/clover.xml"
idle_timeout: 300
coverage:
file: 'build/coverage/clover.xml'
format: 'php-clover'
analysis:
tests:
override:
- php-scrutinizer-run