File tree Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
orbs :
4
- composer : stockfiller/composer@0.0.38
5
- php-cs-fixer : stockfiller/php-cs-fixer@0.0.18
6
- phpunit : stockfiller/phpunit@0.0.13
4
+ composer : stockfiller/composer@2
5
+ php-cs-fixer : stockfiller/php-cs-fixer@1
6
+ phpunit : stockfiller/phpunit@1
7
7
php-coveralls : nekman/php-coveralls@0.0.5
8
8
9
9
executors :
@@ -19,6 +19,8 @@ executors:
19
19
jobs :
20
20
test_coverage :
21
21
executor : php74
22
+ environment :
23
+ CLOVER_PATH : coverage/clover.xml
22
24
steps :
23
25
- run :
24
26
name : Install PCOV and git
30
32
- composer/install_bin
31
33
- composer/install
32
34
- phpunit/test :
33
- flags : --coverage-clover coverage/clover.xml
35
+ coverage : clover
36
+ coverage-path : " ${CLOVER_PATH}"
37
+ src-path : src
38
+ test-path : tests
34
39
- php-coveralls/upload :
35
- clover-path : coverage/clover.xml
40
+ clover-path : " ${CLOVER_PATH} "
36
41
37
42
workflows :
38
43
master :
@@ -52,6 +57,7 @@ workflows:
52
57
- php-cs-fixer/fix :
53
58
executor : php74
54
59
rules : " @PSR2"
60
+ path : .
55
61
pre-steps :
56
62
- run : apk add --update --no-cache git openssh-client
57
63
- composer/install_bin
@@ -62,6 +68,7 @@ workflows:
62
68
filters : *branch-filters
63
69
requires : [ php-cs-fixer/fix ]
64
70
- phpunit/test :
71
+ test-path : tests
65
72
matrix :
66
73
parameters :
67
74
executor :
Original file line number Diff line number Diff line change 44
44
"php-coveralls/php-coveralls" : " ^2.1"
45
45
},
46
46
"scripts" : {
47
- "test" : " phpunit"
47
+ "test" : " phpunit tests" ,
48
+ "lint" : " php-cs-fixer fix --rules=@PSR2 ."
48
49
}
49
50
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments