@@ -25,6 +25,10 @@ test: vendor cs deptrac phpunit infection
2525test-min : update-min cs deptrac phpunit infection
2626.PHONY : test-min
2727
28+ test-package : package test-package-tools
29+ cd tests/phar && ./tools/phpunit
30+ .PHONY : test-package
31+
2832cs : tools/php-cs-fixer
2933 tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi fix
3034.PHONY : cs
@@ -48,15 +52,21 @@ phpunit: tools/phpunit
4852tools : tools/php-cs-fixer tools/deptrac tools/infection tools/box
4953.PHONY : tools
5054
55+ test-package-tools : tests/phar/tools/phpunit tests/phar/tools/phpunit.d/zalas-phpunit-injector-extension.phar
56+ .PHONY : test-package-tools
57+
5158clean :
5259 rm -rf build
60+ rm -rf vendor
61+ find tools -not -path ' */\.*' -type f -delete
62+ find tests/phar/tools -not -path ' */\.*' -type f -delete
5363.PHONY : clean
5464
5565package : tools/box
5666 $(eval VERSION=$(shell git describe --abbrev=0 --tags 2> /dev/null | sed -e 's/^v//' || echo 'dev') )
5767 @rm -rf build/phar && mkdir -p build/phar
5868
59- cp -r src LICENSE composer.json build/phar
69+ cp -r src LICENSE composer.json scoper.inc.php build/phar
6070 sed -e 's/@@version@@/$(VERSION)/g' manifest.xml.in > build/phar/manifest.xml
6171
6272 cd build/phar && \
@@ -89,4 +99,12 @@ tools/infection.pubkey:
8999 curl -Ls https://github.com/infection/infection/releases/download/0.9.0/infection.phar.pubkey -o tools/infection.pubkey
90100
91101tools/box :
92- curl -Ls https://github.com/humbug/box/releases/download/3.0.0-beta.0/box.phar -o tools/box && chmod +x tools/box
102+ curl -Ls https://github.com/humbug/box/releases/download/3.0.0-beta.4/box.phar -o tools/box && chmod +x tools/box
103+
104+ tests/phar/tools/phpunit :
105+ curl -Ls https://phar.phpunit.de/phpunit-7.phar -o tests/phar/tools/phpunit && chmod +x tests/phar/tools/phpunit
106+
107+ tests/phar/tools/phpunit.d/zalas-phpunit-injector-extension.phar : build/zalas-phpunit-injector-extension.phar
108+ cp build/zalas-phpunit-injector-extension.phar tests/phar/tools/phpunit.d/zalas-phpunit-injector-extension.phar
109+
110+ build/zalas-phpunit-injector-extension.phar : package
0 commit comments