ci: remove PHPUnit, PHPStan and PHPCS
Remove these checks as there are no custom modules.
This commit is contained in:
parent
a96d506f04
commit
dda036f9b1
13
build.yaml
13
build.yaml
|
@ -11,16 +11,9 @@ database:
|
||||||
|
|
||||||
php:
|
php:
|
||||||
version: 8.1-fpm-bullseye
|
version: 8.1-fpm-bullseye
|
||||||
phpcs:
|
phpcs: false
|
||||||
paths:
|
phpstan: false
|
||||||
- web/modules/custom
|
phpunit: false
|
||||||
standards:
|
|
||||||
- Drupal
|
|
||||||
- DrupalPractice
|
|
||||||
phpstan:
|
|
||||||
level: max
|
|
||||||
paths:
|
|
||||||
- web/modules/custom
|
|
||||||
|
|
||||||
drupal:
|
drupal:
|
||||||
docroot: web
|
docroot: web
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<!-- Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. -->
|
|
||||||
|
|
||||||
<ruleset name="docker-example-drupal-commerce-kickstart coding standards">
|
|
||||||
<description>PHPCS configuration file for docker-example-drupal-commerce-kickstart.</description>
|
|
||||||
|
|
||||||
<file>web/modules/custom</file>
|
|
||||||
|
|
||||||
<arg value="np"/>
|
|
||||||
|
|
||||||
<rule ref="DrupalPractice"/>
|
|
||||||
|
|
||||||
<rule ref="Drupal">
|
|
||||||
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
|
||||||
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
|
||||||
<exclude name="Drupal.Commenting.Deprecated"/>
|
|
||||||
<exclude name="Drupal.Commenting.DocComment.ContentAfterOpen"/>
|
|
||||||
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.ParamTypeSpaces"/>
|
|
||||||
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
|
|
||||||
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
|
|
||||||
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
|
|
||||||
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
|
|
||||||
<exclude name="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema"/>
|
|
||||||
</rule>
|
|
||||||
</ruleset>
|
|
|
@ -1,9 +0,0 @@
|
||||||
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
|
||||||
|
|
||||||
parameters:
|
|
||||||
level: max
|
|
||||||
excludePaths:
|
|
||||||
- *Test.php
|
|
||||||
- *TestBase.php
|
|
||||||
paths:
|
|
||||||
- web/modules/custom
|
|
|
@ -1,37 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. -->
|
|
||||||
<phpunit
|
|
||||||
beStrictAboutChangesToGlobalState="true"
|
|
||||||
beStrictAboutOutputDuringTests="false"
|
|
||||||
beStrictAboutTestsThatDoNotTestAnything="true"
|
|
||||||
bootstrap="web/core/tests/bootstrap.php"
|
|
||||||
cacheResult="false"
|
|
||||||
colors="true"
|
|
||||||
failOnWarning="true"
|
|
||||||
printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter"
|
|
||||||
>
|
|
||||||
<php>
|
|
||||||
<env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/>
|
|
||||||
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
|
|
||||||
<env name="MINK_DRIVER_ARGS" value=''/>
|
|
||||||
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value=''/>
|
|
||||||
<env name="MINK_DRIVER_CLASS" value=''/>
|
|
||||||
<env name="SIMPLETEST_BASE_URL" value="http://web"/>
|
|
||||||
<env name="SIMPLETEST_DB" value="sqlite://localhost//dev/shm/test.sqlite"/>
|
|
||||||
|
|
||||||
<ini name="error_reporting" value="32767"/>
|
|
||||||
<ini name="memory_limit" value="-1"/>
|
|
||||||
</php>
|
|
||||||
|
|
||||||
<testsuites>
|
|
||||||
<testsuite name="functional">
|
|
||||||
<directory>./web/modules/custom/**/tests/**/Functional</directory>
|
|
||||||
</testsuite>
|
|
||||||
<testsuite name="kernel">
|
|
||||||
<directory>./web/modules/custom/**/tests/**/Kernel</directory>
|
|
||||||
</testsuite>
|
|
||||||
<testsuite name="unit">
|
|
||||||
<directory>./web/modules/custom/**/tests/**/Unit</directory>
|
|
||||||
</testsuite>
|
|
||||||
</testsuites>
|
|
||||||
</phpunit>
|
|
18
run
18
run
|
@ -21,9 +21,7 @@ function ci:test {
|
||||||
|
|
||||||
composer install --quiet --no-progress
|
composer install --quiet --no-progress
|
||||||
|
|
||||||
test --testdox
|
|
||||||
|
|
||||||
quality
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run a command within the php container.
|
# Run a command within the php container.
|
||||||
|
@ -31,9 +29,6 @@ function cmd {
|
||||||
docker compose exec php "${@}"
|
docker compose exec php "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function coding-standards {
|
|
||||||
cmd phpcs "${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function composer {
|
function composer {
|
||||||
_exec php composer "${@}"
|
_exec php composer "${@}"
|
||||||
|
@ -65,10 +60,6 @@ function lint:dockerfile {
|
||||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
|
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||||
}
|
}
|
||||||
|
|
||||||
function quality {
|
|
||||||
coding-standards
|
|
||||||
static-analysis
|
|
||||||
}
|
|
||||||
|
|
||||||
function start {
|
function start {
|
||||||
cp -v --no-clobber .env.example .env
|
cp -v --no-clobber .env.example .env
|
||||||
|
@ -76,22 +67,13 @@ function start {
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
}
|
}
|
||||||
|
|
||||||
function static-analysis {
|
|
||||||
cmd phpstan --memory-limit=-1 --no-progress "${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function stop {
|
function stop {
|
||||||
docker compose down
|
docker compose down
|
||||||
}
|
}
|
||||||
|
|
||||||
function test {
|
|
||||||
_exec php phpunit --colors=always "${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function test:commit {
|
function test:commit {
|
||||||
test --testdox --testsuite functional
|
|
||||||
test --testdox --testsuite kernel
|
|
||||||
test --testdox --testsuite unit
|
|
||||||
|
|
||||||
quality
|
quality
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue