forked from yiisoft/yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
91 lines (73 loc) · 2.48 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
checks:
php: true
filter:
paths:
- framework/
excluded_paths:
- vendor/
dependency_paths:
- vendor/
build:
image: default-bionic
environment:
php:
version: 7.4.28
ini:
xdebug.mode: coverage,develop
memory_limit: -1
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
phpunit:
dependencies:
override:
- composer self-update
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
services:
db-mysql:
image: mysql:8.0
# Define any additional environment variables that are needed by the service.
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: yiitest
# We automatically forward these ports from your localhost to the service's port.
# Alternatively, you can also access the service on the "$SERVICE_SOME_NAME_IP"
# environment variable.
ports:
# Forward 127.0.0.1:12345 -> SERVICE_IP:12345
- 3306
# If your service writes data to disk like most databases do, you can significantly
# speed up tests by mounting a ramdisk at those paths.
ramdisks:
- /var/lib/data
db-pgsql:
image: postgres:14
# Define any additional environment variables that are needed by the service.
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: yiitest
# We automatically forward these ports from your localhost to the service's port.
# Alternatively, you can also access the service on the "$SERVICE_SOME_NAME_IP"
# environment variable.
ports:
# Forward 127.0.0.1:12345 -> SERVICE_IP:12345
- 5432
# If your service writes data to disk like most databases do, you can significantly
# speed up tests by mounting a ramdisk at those paths.
ramdisks:
- /var/lib/data
memcached:
image: memcached
tests:
before:
- sudo locale-gen fr_FR.UTF-8
override:
- command: ./vendor/bin/phpunit --verbose --exclude-group cubrid,oci,mssql,wincache,xcache,zenddata --colors=always --coverage-clover ./coverage.xml
on_node: 1
coverage:
file: coverage.xml
format: php-clover