-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
5,640 additions
and
421 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
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
.php-cs-fixer.cache | ||
.php-cs-fixer.php | ||
coverage | ||
composer.lock | ||
phpunit.xml | ||
/.php-cs-fixer.cache | ||
/.php-cs-fixer.php | ||
/.phpunit.cache/ | ||
/.phpunit.result.cache | ||
/bin | ||
/build/ | ||
/vendor/ | ||
/composer.lock | ||
/phpunit.xml | ||
/vendor-bin/tools/bin/ | ||
!/vendor-bin/tools/composer.lock | ||
/vendor-bin/tools/vendor/ | ||
/vendor-bin/tools/bin/ | ||
/vendor/ |
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,46 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Relazy package. | ||
* | ||
* (c) Christian Gripp <mail@core23.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Nucleos\Relazy\Action\Changelog\UpdateAction; | ||
use Nucleos\Relazy\Action\Composer\OutdatedAction; | ||
use Nucleos\Relazy\Action\Composer\StabilityCheckAction; | ||
use Nucleos\Relazy\Action\Composer\ValidateAction; | ||
use Nucleos\Relazy\Action\VersionControl\CommitAction; | ||
use Nucleos\Relazy\Action\VersionControl\CurrentVersionAction; | ||
use Nucleos\Relazy\Action\VersionControl\LastChangesAction; | ||
use Nucleos\Relazy\Changelog\Formatter\PrefixGroupFormatter; | ||
use Nucleos\Relazy\Config\RelazyConfig; | ||
use Nucleos\Relazy\Version\Generator\SemanticGenerator; | ||
use Nucleos\Relazy\Version\Persister\TagPersister; | ||
use Nucleos\Relazy\VersionControl\Git; | ||
|
||
return (new RelazyConfig(new Git())) | ||
->versionGenerator(new SemanticGenerator()) | ||
->versionPersister(new TagPersister()) | ||
->formatter(new PrefixGroupFormatter( | ||
defaultGroup: 'Changed', | ||
groups: ['Feature', 'Enhancement', 'Fixed', 'Translation', 'Changed'], | ||
ignorePrefixes: ['Doc', 'Pedantic'] | ||
)) | ||
->startupActions([ | ||
new ValidateAction(), | ||
new StabilityCheckAction(), | ||
new OutdatedAction(), | ||
new LastChangesAction(), | ||
new CurrentVersionAction(), | ||
]) | ||
->preReleaseActions([ | ||
new UpdateAction( | ||
file: 'CHANGELOG.MD', | ||
), | ||
new CommitAction(filter: ['CHANGELOG.MD']), | ||
]) | ||
; |
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,59 @@ | ||
.PHONY: default | ||
default: lint | ||
|
||
.PHONY: fix | ||
fix: cs-fix | ||
|
||
.PHONY: lint | ||
lint: lint-composer | ||
|
||
.PHONY: lint-composer | ||
lint-composer: | ||
composer validate --strict | ||
composer normalize --dry-run | ||
|
||
.PHONY: test | ||
test: vendor-bin/tools/vendor | ||
vendor/bin/phpunit --colors=always | ||
|
||
.PHONY: infection | ||
infection: vendor/bin/infection | ||
vendor/bin/infection --threads=4 | ||
|
||
.PHONY: coverage | ||
coverage: vendor-bin/tools/vendor | ||
vendor/bin/phpunit --colors=always --coverage-clover=build/logs/clover.xml | ||
|
||
.PHONY: cs | ||
cs: vendor-bin/tools/vendor | ||
vendor/bin/php-cs-fixer fix --verbose --diff --dry-run | ||
|
||
.PHONY: cs-fix | ||
cs-fix: vendor-bin/tools/vendor | ||
vendor/bin/php-cs-fixer fix --verbose | ||
|
||
.PHONY: psalm | ||
psalm: vendor-bin/tools/vendor | ||
vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4 | ||
|
||
.PHONY: phpstan | ||
phpstan: vendor-bin/tools/vendor | ||
vendor/bin/phpstan analyse | ||
|
||
.PHONY: phpmd | ||
phpmd: vendor-bin/tools/vendor | ||
vendor/bin/phpmd src,tests ansi phpmd.xml | ||
|
||
.PHONY: check-dependencies | ||
check-dependencies: vendor-bin/tools/vendor | ||
vendor/bin/composer-require-checker check --config-file composer-require.json composer.json | ||
|
||
# | ||
# Installation tasks | ||
# | ||
|
||
vendor-bin/tools/vendor: | ||
composer --working-dir=vendor-bin/tools install | ||
|
||
vendor/bin/infection: vendor-bin/tools/vendor | ||
wget -O vendor/bin/infection https://github.com/infection/infection/releases/latest/download/infection.phar && chmod +x vendor/bin/infection |
Oops, something went wrong.