forked from cryptiklemur/environment-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bldr.yml
103 lines (103 loc) · 3.31 KB
/
.bldr.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
bldr:
name: aequasi/environment
description: php environment class
profiles:
codeship:
description: Codeship Profile
tasks:
- prepare
- lint
- phpcs
- test
tdd:
description: Local Development Profile
tasks:
- testLocal
- watch
tasks:
prepare:
calls:
-
type: filesystem:remove
files: [build/coverage, build/logs]
-
type: filesystem:mkdir
failOnError: true
files: [build/coverage, build/logs]
-
type: filesystem:touch
failOnError: true
files: [build/coverage/index.html]
-
type: exec
failOnError: true
executable: composer
arguments: [install, --prefer-dist]
-
type: notify
message: Prepare Task Finished
lint:
description: Lints the files of the project
calls:
-
type: apply
failOnError: true
src:
- { path: [src, test], files: *.php, recursive: true }
output: /dev/null
executable: php
arguments: [-l]
phpcs:
description: Runs the PHP Code Sniffer
calls:
-
type: exec
executable: php
arguments:
- bin/phpcs
- --standard=PSR2
- --report=full
- src/
-
type: exec
output: /dev/null
append: false
executable: php
arguments:
- bin/phpcs
- --standard=PSR2
- --report=checkstyle
- --report-file=build/logs/checkstyle.xml
- src/
test:
description: Runs the PHPUnit Tests
calls:
-
type: exec
failOnError: true
executable: php
arguments:
- bin/phpunit
- --coverage-html=build/coverage
- --coverage-text=php://stdout
testLocal:
description: Runs the PHPUnit Tests
calls:
-
type: exec
executable: clear
-
type: exec
executable: php
arguments:
- vendor/bin/phpunit
#- --stop-on-failure
#- --group=now
watch:
description: Watch Task for Local Development
calls:
-
type: watch
src:
- { path: [src, test], files: *.php, recursive: true }
task: testLocal