Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Move script definitions from composer.json into Makefile
- Loading branch information
1 parent
dd963a5
commit 612f778
Showing
6 changed files
with
33 additions
and
13 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
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,22 @@ | ||
.PHONY: qa | ||
qa: coding-standards tests | ||
|
||
.PHONY: code-coverage | ||
code-coverage: vendor | ||
XDEBUG_MODE=coverage .Build/bin/phpunit -c Tests/phpunit.xml.dist --log-junit .Build/logs/phpunit.xml --coverage-text --coverage-clover .Build/logs/clover.xml | ||
|
||
.PHONY: coding-standards | ||
coding-standards: vendor | ||
.Build/bin/php-cs-fixer fix --config=.php_cs --diff | ||
|
||
.PHONY: tests | ||
tests: vendor | ||
.Build/bin/phpunit --configuration=Tests/phpunit.xml.dist | ||
|
||
vendor: composer.json composer.lock | ||
composer validate | ||
composer install | ||
|
||
.PHONY: zip | ||
zip: | ||
grep -Po "(?<='version' => ')([0-9]+\.[0-9]+\.[0-9]+)" ext_emconf.php | xargs -I {version} sh -c 'mkdir -p ../zip; git archive -v -o "../zip/${PWD##*/}_{version}.zip" v{version}' |
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