@@ -47,16 +47,23 @@ help:
4747# ---------------------------------------------------------------------------
4848
4949.PHONY : check
50- check : # # Runs all checks
51- check : composer_root_version_lint cs composer_normalize phpstan test
50+ check : # # Runs all checks
51+ check : composer_root_version_lint cs autoreview test composer_root_version_check
5252
53- .PHONY : clean
54- clean : # # Cleans all created artifacts
55- clean :
56- git clean --exclude=.idea/ -ffdx
53+ .PHONY : build
54+ build : # # Builds the PHAR
55+ build :
56+ rm $(PHP_SCOPER_PHAR_BIN ) || true
57+ $(MAKE ) $(PHP_SCOPER_PHAR_BIN )
58+
59+ .PHONY : fixtures_composer_outdated
60+ fixtures_composer_outdated : # # Reports outdated dependencies
61+ fixtures_composer_outdated :
62+ @find fixtures -name ' composer.json' -type f -depth 2 -exec dirname ' {}' \; | xargs -I % sh -c ' printf "Installing dependencies for %;\n" $$(composer install --working-dir=% --ansi)'
63+ @find fixtures -name ' composer.json' -type f -depth 2 -exec dirname ' {}' \; | xargs -I % sh -c ' printf "Checking dependencies for %;\n" $$(composer outdated --direct --working-dir=% --ansi)'
5764
5865.PHONY : cs
59- cs : # # Fixes CS
66+ cs : # # Fixes CS
6067cs : gitignore_sort composer_normalize php_cs_fixer
6168
6269.PHONY : cs_lint
@@ -87,28 +94,21 @@ gitignore_sort:
8794phpstan : $(PHPSTAN_BIN )
8895 $(PHPSTAN )
8996
90- .PHONY : build
91- build : # # Builds the PHAR
92- build :
93- rm $(PHP_SCOPER_PHAR_BIN ) || true
94- $(MAKE ) $(PHP_SCOPER_PHAR_BIN )
95-
96- .PHONY : fixtures_composer_outdated
97- fixtures_composer_outdated : # # Reports outdated dependencies
98- fixtures_composer_outdated :
99- @find fixtures -name ' composer.json' -type f -depth 2 -exec dirname ' {}' \; | xargs -I % sh -c ' printf "Installing dependencies for %;\n" $$(composer install --working-dir=% --ansi)'
100- @find fixtures -name ' composer.json' -type f -depth 2 -exec dirname ' {}' \; | xargs -I % sh -c ' printf "Checking dependencies for %;\n" $$(composer outdated --direct --working-dir=% --ansi)'
97+ .PHONY : autoreview
98+ autoreview : # # Runs the AutoReview checks
99+ autoreview : cs_lint phpstan covers_validator
101100
102101.PHONY : test
103- test : # # Runs all the tests
104- test : validate_package covers_validator phpunit e2e
102+ test : # # Runs all the tests
103+ test : validate_package phpunit e2e
105104
106105.PHONY : validate_package
107106validate_package :
108107 composer validate --strict
109108
110109.PHONY : composer_root_version_check
111110composer_root_version_check : # # Runs all checks for the ComposerRootVersion app
111+ composer_root_version_check :
112112 cd composer-root-version-checker; $(MAKE ) --file Makefile check
113113
114114.PHONY : composer_root_version_lint
@@ -135,7 +135,7 @@ phpunit_coverage_infection: $(PHPUNIT_BIN) vendor
135135 $(PHPUNIT_COVERAGE_INFECTION )
136136
137137.PHONY : phpunit_coverage_html
138- phpunit_coverage_html : # # Runs PHPUnit with code coverage with HTML report
138+ phpunit_coverage_html : # # Runs PHPUnit with code coverage with HTML report
139139phpunit_coverage_html : $(PHPUNIT_BIN ) vendor
140140 $(PHPUNIT_COVERAGE_HTML )
141141
@@ -144,17 +144,22 @@ infection: $(COVERAGE_XML) vendor
144144# infection: $(INFECTION_BIN) $(COVERAGE_XML) vendor
145145 if [ -d $(COVERAGE_XML) ]; then $(INFECTION); fi
146146
147+ include .makefile/e2e.file
148+ .PHONY : e2e
149+ e2e : # # Runs end-to-end tests
150+ e2e : e2e_004 e2e_005 e2e_011 e2e_013 e2e_014 e2e_015 e2e_016 e2e_017 e2e_018 e2e_019 e2e_020 e2e_024 e2e_025 e2e_027 e2e_028 e2e_029 e2e_030 e2e_031 e2e_032 e2e_033 e2e_034 e2e_035
151+
147152.PHONY : blackfire
148- blackfire : # # Runs Blackfire profiling
153+ blackfire : # # Runs Blackfire profiling
149154blackfire : vendor
150155 @echo " By https://blackfire.io"
151156 @echo " This might take a while (~2min)"
152157 $(BLACKFIRE ) run php bin/php-scoper add-prefix --output-dir=build/php-scoper --force --quiet
153158
154- include .makefile/e2e.file
155- .PHONY : e2e
156- e2e : # # Runs end-to-end tests
157- e2e : e2e_004 e2e_005 e2e_011 e2e_013 e2e_014 e2e_015 e2e_016 e2e_017 e2e_018 e2e_019 e2e_020 e2e_024 e2e_025 e2e_027 e2e_028 e2e_029 e2e_030 e2e_031 e2e_032 e2e_033 e2e_034 e2e_035
159+ .PHONY : clean
160+ clean : # # Cleans all created artifacts
161+ clean :
162+ git clean --exclude=.idea/ -ffdx
158163
159164
160165#
0 commit comments