forked from linna/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
35 lines (31 loc) · 872 Bytes
/
.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
# .scrutinizer.yml
checks:
php:
code_rating: true
duplication: true
filter:
paths: ['src/*']
tools:
php_code_sniffer:
config:
standard: "PSR2"
build:
environment:
php: 7.1
mysql: 5.5
memcached: true
mongodb: true
tests:
override:
-
command: '/usr/local/bin/phpunit --coverage-clover=clover.xml'
coverage:
file: 'clover.xml'
format: 'clover'
project_setup:
before:
- mysql -e "CREATE DATABASE linna_db"
- mysql -u root linna_db < tests/linna_db_mysql.sql
- wget https://phar.phpunit.de/phpunit.phar
- chmod +x phpunit.phar
- sudo mv phpunit.phar /usr/local/bin/phpunit