forked from AlexKovalevych/jira-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bldr.yml
111 lines (110 loc) · 3.5 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
104
105
106
107
108
109
110
111
bldr:
name: alexkovalevych/jira-api
description: Jira API library
profiles:
travis:
description: Travis Profile
tasks:
- prepare
- secure
- lint
- phpcs
- test
local:
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: [-q, install, --prefer-dist]
-
type: notify
message: Prepare Task Finished
secure:
calls:
-
type: exec
failOnError: true
executable: ./secure
arguments: []
lint:
description: Lints the files of the project
calls:
-
type: apply
failOnError: true
src:
- { path: [src, tests], 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:
- vendor/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
#- --group=now
watch:
description: Watch Task for Local Development
calls:
-
type: watch
src:
- { path: [src, tests], files: *.php, recursive: true }
task: testLocal