chore: group PHP-related templates
This commit is contained in:
parent
b1da05e9cf
commit
4e861685d9
5 changed files with 4 additions and 4 deletions
5
templates/php/docker-entrypoint-php.twig
Executable file
5
templates/php/docker-entrypoint-php.twig
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[[ -f composer.json && ! -d vendor ]] && composer install
|
||||
|
||||
eval "$@"
|
||||
7
templates/php/phpcs.xml.twig
Normal file
7
templates/php/phpcs.xml.twig
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="{{ name }} coding standards">
|
||||
<description>PHPCS configuration file for {{ name }}.</description>
|
||||
<file>src</file>
|
||||
<arg value="np"/>
|
||||
<rule ref="{{ php.phpcs.standard }}"/>
|
||||
</ruleset>
|
||||
6
templates/php/phpstan.neon.twig
Normal file
6
templates/php/phpstan.neon.twig
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
parameters:
|
||||
level: {{ php.phpstan.level }}
|
||||
paths:
|
||||
{% for path in php.phpstan.paths | default(["src"]) -%}
|
||||
- {{ path }}
|
||||
{% endfor %}
|
||||
20
templates/php/phpunit.xml.twig
Normal file
20
templates/php/phpunit.xml.twig
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
cacheResultFile=".phpunit.cache/test-results"
|
||||
executionOrder="depends,defects"
|
||||
forceCoversAnnotation="false"
|
||||
beStrictAboutCoversAnnotation="true"
|
||||
beStrictAboutOutputDuringTests="false"
|
||||
beStrictAboutTodoAnnotatedTests="true"
|
||||
convertDeprecationsToExceptions="true"
|
||||
failOnRisky="true"
|
||||
failOnWarning="true"
|
||||
verbose="true">
|
||||
<testsuites>
|
||||
<testsuite name="{{ name }}">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
Loading…
Add table
Add a link
Reference in a new issue