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 authored and weierophinney committed Dec 22, 2021
1 parent 1d217ad commit 2047d07
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 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
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,15 @@
],
"static-analysis": "psalm --shepherd --stats",
"clear-config-cache": "php bin/clear-config-cache.php",
"cs-check": "phpcs -s",
"cs-fix": "phpcbf",
"enable-codestandard": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"cs-check": [
"@enable-codestandard",
"phpcs -s"
],
"cs-fix": [
"@enable-codestandard",
"phpcbf"
],
"serve": "php -S 0.0.0.0:8080 -t public/",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
Expand Down
2 changes: 1 addition & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
<code>$this-&gt;composerDefinition['require'][$packageName]</code>
<code>$this-&gt;composerDefinition['require-dev'][$devDependency]</code>
<code>$this-&gt;composerDefinition['require-dev'][$packageName]</code>
<code>$this-&gt;composerDefinition['scripts']['analyze']</code>
<code>$this-&gt;composerDefinition['scripts']['check']</code>
<code>$this-&gt;composerDefinition['scripts']['pre-install-cmd']</code>
<code>$this-&gt;composerDefinition['scripts']['pre-update-cmd']</code>
<code>$this-&gt;composerDefinition['scripts']['static-analysis']</code>
<code>$this-&gt;config['application'][$this-&gt;installType]</code>
<code>$this-&gt;config['application'][$this-&gt;installType]</code>
<code>$this-&gt;config['packages'][$packageName]</code>
Expand Down

0 comments on commit 2047d07

Please sign in to comment.