File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ update-min:
15
15
composer update --prefer-stable --prefer-lowest
16
16
.PHONY : update-min
17
17
18
+ update-no-dev :
19
+ composer update --prefer-stable --no-dev
20
+ .PHONY : update-no-dev
21
+
18
22
test : vendor cs deptrac phpunit infection
19
23
.PHONY : test
20
24
@@ -44,13 +48,19 @@ phpunit: tools/phpunit
44
48
tools : tools/php-cs-fixer tools/deptrac tools/infection tools/phpab
45
49
.PHONY : tools
46
50
47
- package : install tools/phpab
51
+ clean :
52
+ rm -rf build
53
+ .PHONY : clean
54
+
55
+ package : clean update-no-dev tools/phpab
48
56
$(eval VERSION=$(shell git describe --abbrev=0 --tags 2> /dev/null | sed -e 's/^v//' || echo 'dev') )
49
- @echo $(VERSION )
50
- rm -rf build/phar && mkdir -p build/phar
51
- cp LICENSE build/phar/
52
- sed -e ' s/@@version@@/$(VERSION)/g' manifest.xml.in > build/phar/manifest.xml
53
- mkdir -p build/phar/zalas-phpunit-injector-extension && cp -r src build/phar/zalas-phpunit-injector-extension/
57
+ @mkdir -p build/phar
58
+ @cp LICENSE build/phar/
59
+ @sed -e ' s/@@version@@/$(VERSION)/g' manifest.xml.in > build/phar/manifest.xml
60
+ @mkdir -p build/phar/zalas-phpunit-injector-extension && cp -r src build/phar/zalas-phpunit-injector-extension/
61
+ @composer show -N -D | grep -v phpunit/phpunit | tr -d ' ' \
62
+ | xargs -IXXX composer show XXX -t | grep / | sed -e ' s/^[| `-]*\([^ ]*\) .*/\1/' | sort -u \
63
+ | xargs -IXXX rsync -a --relative vendor/XXX build/phar/zalas-phpunit-injector-extension/
54
64
[ -f .travis/phpunit-injector-extension-private.pem ] \
55
65
&& tools/phpab --all --static --once --phar --key .travis/phpunit-injector-extension-private.pem --output build/zalas-phpunit-injector-extension.phar build/phar \
56
66
|| tools/phpab --all --static --once --phar --output build/zalas-phpunit-injector-extension-$(VERSION ) .phar build/phar
You can’t perform that action at this time.
0 commit comments