forked from REBELinBLUE/deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpci.yml
68 lines (63 loc) · 1.71 KB
/
.phpci.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
build_settings:
clone_depth: 1
verbose: false
ignore:
- "bootstrap"
- "database"
- "node_modules"
- "public"
- "resources"
- "storage"
- "tests"
- "vendor"
- "create-release"
setup:
wipe:
directory: "/var/www/coverage/deployer/"
composer:
action: "install"
prefer_dist: true
env:
APP_ENV: "testing"
APP_DEBUG: "true"
APP_KEY: "cHKwVTJCF75DKo9bta72ZNrkS6Q0tqYy"
CACHE_DRIVER: "array"
SESSION_DRIVER: "array"
QUEUE_DRIVER: "sync"
BROADCAST_DRIVER: "log"
test:
lint:
directory: "app/"
php_unit:
config:
- "phpunit.xml.dist"
directory:
- "tests/"
args: "--no-coverage"
php_mess_detector:
allowed_warnings: 0
path: "app/"
rules:
- "design"
- "naming"
- "unusedcode"
php_code_sniffer:
path: "app/"
standard: "PSR2"
allowed_warnings: 0
allowed_errors: 0
php_cpd:
php_loc:
php_docblock_checker:
technical_debt:
allowed_errors: -1
failure:
email:
committer: true
complete:
env:
CODECLIMATE_REPO_TOKEN: "f5222770741fef12c55315f61a267c8a615908e511241618ce171129e8217e63"
shell:
- "php -dzend_extension=xdebug.so /var/www/PHPCI/latest/vendor/bin/phpunit --coverage-text=/dev/null --coverage-html=/var/www/coverage/deployer --coverage-clover %BUILD_PATH%/storage/logs/clover.xml -c %BUILD_PATH%/phpunit.xml.dist %BUILD_PATH%/tests"
- "php /var/www/PHPCI/latest/vendor/bin/test-reporter --coverage-report=%BUILD_PATH%/storage/logs/clover.xml"
success: