This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add earthfile * update ci tooling * disable PHPMD.StaticAccess for getValueFromFixture
- Loading branch information
Showing
13 changed files
with
302 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
composer.phar | ||
vendor | ||
tests/_output | ||
tests/_support/_generated | ||
composer.lock | ||
.vscode | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
ARG version=7.4 | ||
FROM php:$version-alpine | ||
WORKDIR /codeception | ||
ENV XDEBUG_MODE=coverage | ||
|
||
deps: | ||
RUN apk add --quiet --no-progress --no-cache $PHPIZE_DEPS | ||
RUN pecl -q install xdebug | ||
RUN docker-php-ext-enable xdebug | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer | ||
|
||
setup: | ||
FROM +deps | ||
COPY . . | ||
RUN composer update --prefer-stable --no-progress --no-interaction --quiet | ||
|
||
test: | ||
FROM +setup | ||
RUN ./vendor/bin/codecept run --no-interaction --coverage --coverage-xml | ||
SAVE ARTIFACT tests/_output AS LOCAL ./tests/_output | ||
|
||
mutation: | ||
FROM +setup | ||
RUN ./vendor/bin/infection --min-covered-msi=80 --no-progress --no-interaction --log-verbosity=all --threads=$(nproc) | ||
SAVE ARTIFACT tests/_output/infection AS LOCAL ./tests/_output/infection | ||
|
||
phpmd: | ||
FROM +setup | ||
RUN ./vendor/bin/phpmd src,tests ansi codesize,unusedcode,naming,design,controversial | ||
|
||
phpcs: | ||
FROM +setup | ||
RUN ./vendor/bin/phpcs -p --colors src tests | ||
|
||
phpcbf: | ||
FROM +setup | ||
RUN ./vendor/bin/phpcbf -p src tests 2>&1 || true | ||
SAVE ARTIFACT src AS LOCAL ./src | ||
SAVE ARTIFACT tests AS LOCAL ./tests | ||
|
||
all: | ||
BUILD +phpcs | ||
BUILD +phpmd | ||
BUILD +test | ||
BUILD +mutation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="GherkinParam" namespace="GherkinParam\CS\Standard"> | ||
<description>GherkinParam custom phpcs ruleset (based on default ruleset)</description> | ||
<file>./src</file> | ||
<file>./tests</file> | ||
|
||
<rule ref="PEAR.Classes.ClassDeclaration"/> | ||
<rule ref="PEAR.Commenting.ClassComment"> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
</rule> | ||
<rule ref="PEAR.Commenting.FunctionComment"> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
</rule> | ||
<rule ref="PEAR.Commenting.InlineComment"/> | ||
<rule ref="PEAR.ControlStructures.ControlSignature"/> | ||
<rule ref="PEAR.ControlStructures.MultiLineCondition"/> | ||
<rule ref="PEAR.Files.IncludingFile"/> | ||
<rule ref="PEAR.Formatting.MultiLineAssignment"/> | ||
<rule ref="PEAR.Functions.FunctionCallSignature"/> | ||
<rule ref="PEAR.Functions.FunctionDeclaration"/> | ||
<rule ref="PEAR.Functions.ValidDefaultValue"/> | ||
<rule ref="PEAR.NamingConventions.ValidClassName"/> | ||
<rule ref="PEAR.NamingConventions.ValidFunctionName"> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
</rule> | ||
<rule ref="PEAR.NamingConventions.ValidVariableName"/> | ||
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/> | ||
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/> | ||
<rule ref="PEAR.WhiteSpace.ScopeIndent"/> | ||
<rule ref="PEAR.Commenting.FileComment"> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
</rule> | ||
|
||
<rule ref="Generic.ControlStructures.InlineControlStructure"/> | ||
<rule ref="Generic.Files.LineEndings"/> | ||
<rule ref="Generic.Files.LineLength"/> | ||
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> | ||
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/> | ||
<rule ref="Generic.PHP.DisallowShortOpenTag"/> | ||
<rule ref="Generic.PHP.LowerCaseConstant"/> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/> | ||
<rule ref="Generic.Commenting.DocComment"> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
</rule> | ||
</ruleset> |
Oops, something went wrong.