Skip to content

Commit f621f7d

Browse files
committed
Move testing to composer
1 parent a8acf1d commit f621f7d

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
- checkout
99
- run: composer validate --strict
1010
- run: composer install --no-interaction --no-suggest
11-
- run: vendor/bin/parallel-lint --no-progress bootstrap.php src/
12-
- run: vendor/bin/phpcs --standard=PSR12NeutronRuleset --exclude=PEAR.Commenting.ClassComment,PEAR.Commenting.FileComment,Generic.Files.LineLength bootstrap.php src/
13-
- run: vendor/bin/phpstan analyze --no-progress
11+
- run: composer test:syntax -- --no-progress
12+
- run: composer test:cs
13+
- run: composer test:phpstan -- --no-progress
1414
workflows:
1515
version: 2
1616
workflow:

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
},
1919
"require-dev": {
2020
"composer/composer": "^1.8.6",
21+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
2122
"php-parallel-lint/php-parallel-lint": "^1.1",
2223
"phpstan/phpstan-strict-rules": "^0.12",
23-
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.4.3",
24-
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2"
24+
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.4.3"
2525
},
2626
"extra": {
2727
"phpstan": {
@@ -34,5 +34,15 @@
3434
"psr-4": {
3535
"PHPStan\\WordPress\\": "src/"
3636
}
37+
},
38+
"scripts": {
39+
"test": [
40+
"@test:syntax",
41+
"@test:cs",
42+
"@test:phpstan"
43+
],
44+
"test:cs": "phpcs --standard=PSR12NeutronRuleset --exclude=PEAR.Commenting.ClassComment,PEAR.Commenting.FileComment,Generic.Files.LineLength bootstrap.php src/",
45+
"test:phpstan": "phpstan analyze",
46+
"test:syntax": "parallel-lint bootstrap.php src/"
3747
}
3848
}

0 commit comments

Comments
 (0)