-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
36 lines (34 loc) · 1.14 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
filter:
excluded_paths:
- 'tests/*'
- 'vendor/*'
- 'Examples/*'
tools:
php_code_sniffer:
config:
standard: "PSR2"
checks:
php:
code_rating: true
duplication: true
build:
environment:
php:
version: 7.1.0
postgresql: true
dependencies:
before:
- mysql -u root -e "CREATE DATABASE easetest"
- mysql -u root -e "GRANT ALL PRIVILEGES ON easetest.* TO easetest@localhost IDENTIFIED BY 'easetest'"
- sudo -u postgres bash -c "psql -c \"CREATE USER easetest WITH PASSWORD 'easetest';\""
- sudo -u postgres bash -c "psql -c \"create database easetest with owner easetest encoding='utf8' template template0;\""
- composer self-update
- composer install --no-interaction
- ./vendor/bin/phinx migrate --configuration tests/phinx.yml
tests:
override:
-
command: './vendor/bin/phpunit --coverage-clover=clover.log'
coverage:
file: 'clover.log'
format: 'clover'