Skip to content

Commit

Permalink
qa: disable plugins in CI and enable coding standard manually
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Oct 10, 2021
1 parent b5868a1 commit 15fd098
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .laminas-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"8.1": true
},
"additional_composer_arguments": [
"--no-scripts"
"--no-scripts",
"--no-plugins"
]
}
5 changes: 5 additions & 0 deletions .laminas-ci/pre-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Due to the fact that we are disabling plugins when installing/updating/downgrading composer dependencies
# we have to manually enable the coding standard here.
composer enable-codestandard
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@
],
"static-analysis": "psalm --shepherd --stats",
"clear-config-cache": "php bin/clear-config-cache.php",
"enable-codestandard": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"cs-check": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"@enable-codestandard",
"phpcs -s"
],
"cs-fix": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"@enable-codestandard",
"phpcbf"
],
"serve": "php -S 0.0.0.0:8080 -t public/",
Expand Down

0 comments on commit 15fd098

Please sign in to comment.