Skip to content

Commit 9c9732a

Browse files
committed
Move CS build back to /build-cs
1 parent 330eb22 commit 9c9732a

File tree

8 files changed

+355
-262
lines changed

8 files changed

+355
-262
lines changed

.github/dependabot.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: 2
22
updates:
3+
- package-ecosystem: composer
4+
directory: "/build-cs"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
38
- package-ecosystem: composer
49
directory: "/compiler"
510
schedule:

build-cs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

build-cs/composer.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"require-dev": {
3+
"consistence-community/coding-standard": "^3.11.0",
4+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
5+
"slevomat/coding-standard": "^6.3.0",
6+
"squizlabs/php_codesniffer": "^3.5.3"
7+
}
8+
}

build-cs/composer.lock

+325
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.xml

+13-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,18 @@
146146

147147
<target name="cs">
148148
<exec
149-
executable="vendor/bin/phpcs"
149+
executable="composer"
150+
logoutput="true"
151+
passthru="true"
152+
checkreturn="true"
153+
>
154+
<arg value="install"/>
155+
<arg value="--working-dir"/>
156+
<arg path="build-cs"/>
157+
<arg value="--ansi"/>
158+
</exec>
159+
<exec
160+
executable="build-cs/vendor/bin/phpcs"
150161
logoutput="true"
151162
passthru="true"
152163
checkreturn="true"
@@ -156,7 +167,7 @@
156167

157168
<target name="cs-fix">
158169
<exec
159-
executable="vendor/bin/phpcbf"
170+
executable="build-cs/vendor/bin/phpcbf"
160171
logoutput="true"
161172
passthru="true"
162173
checkreturn="true"

composer.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,14 @@
4242
},
4343
"require-dev": {
4444
"brianium/paratest": "^4.0",
45-
"consistence-community/coding-standard": "^3.11",
46-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
4745
"nategood/httpful": "^0.2.20",
4846
"phing/phing": "^2.16.0",
4947
"php-parallel-lint/php-parallel-lint": "^1.2.0",
5048
"phpstan/phpstan-deprecation-rules": "^0.12.3",
5149
"phpstan/phpstan-php-parser": "^0.12",
5250
"phpstan/phpstan-phpunit": "^0.12",
5351
"phpstan/phpstan-strict-rules": "^0.12",
54-
"phpunit/phpunit": "^7.5.18",
55-
"slevomat/coding-standard": "^6.4",
56-
"squizlabs/php_codesniffer": "^3.5"
52+
"phpunit/phpunit": "^7.5.18"
5753
},
5854
"config": {
5955
"platform": {

0 commit comments

Comments
 (0)