-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.scrutinizer.yml
66 lines (58 loc) · 1.66 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
filter:
paths:
- 'app/*'
excluded_paths:
- 'resources/views/*'
- - 'resources/assets/*'
- 'config/*'
- 'tests/*'
checks:
php:
properties_in_camelcaps: true
function_in_camel_caps: true
encourage_single_quotes: true
phpunit_assertions: true
no_long_variable_names:
maximum: '20'
fix_use_statements:
remove_unused: true
preserve_multiple: true
preserve_blanklines: true
order_alphabetically: false
unused_variables: true
# phpunit_assertions: true
function_in_camel_caps: true
encourage_single_quotes: true
# javascript: true
coding_style:
php:
indentation:
general:
size: 2
spaces:
within:
brackets: true
build:
environment:
php:
version: 7.1.*
mysql: 5.7
variables:
APP_KEY: base64:D6N/Z/7E0B1M3l1GumT+Kp+JT7E4bzbeMRuxzV3CP1s=
DB_DATABASE: giveblood_test
DB_USERNAME: root
DB_CONNECTION: mysql
APP_ENV: testing
dependencies:
before:
- mysql -uroot -e 'CREATE DATABASE giveblood_test'
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=build/logs/clover.xml'
coverage:
file: 'build/logs/clover.xml'
format: 'clover'
# before:
# - command: php artisan migrate --env=testing --no-interaction
# - command: php artisan db:seed --env=testing --no-interaction