-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scrutinizer.yml
52 lines (49 loc) · 1.11 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
filter:
paths: ["src/*"]
excluded_paths: ["vendor/*", "tests/*"]
checks:
php:
code_rating: true
duplication: true
tools:
external_code_coverage: false
build:
services:
mongo: 4
environment:
php:
version: 7.2.5
pecl_extensions:
- redis
- memcache-4.0.5.2
- memcached
- APCu
- apcu_bc
- xdebug
- mongodb-1.5.0
ini:
'apc.enable_cli': 'On'
mysql: true
redis: true
memcached: true
mongodb: true
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
dependencies:
before:
- composer self-update
- composer update --no-interaction --prefer-dist --no-progress --dev
# Create DB for testing.
- mysql -u root -e 'CREATE DATABASE shieldon_unittest;'
- mysql -u root -e "CREATE USER 'shieldon'@'localhost' IDENTIFIED BY 'taiwan';"
- mysql -u root -e "GRANT ALL ON shieldon_unittest.* TO 'shieldon'@'localhost';"
tests:
before:
-
command: composer test
coverage:
file: 'coverage.xml'
format: 'clover'