diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 19:18:55 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 19:18:55 +0100 |
commit | 8e063c32efdbd00f27b5fb87b6885fb200063c2a (patch) | |
tree | 9c2c34319bc3c7b8741be0b5e250166eb2fd7dda /Makefile | |
parent | ff2ea9d3a159c8016b129a29b426957b100bc586 (diff) |
download composer and phpunit to build directory
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -30,10 +30,11 @@ build: composer: ifeq (, $(shell which composer 2> /dev/null)) @echo "No composer command available, downloading a copy from the web" + mkdir -p build/tools curl -sS https://getcomposer.org/installer | php - php composer.phar install --prefer-dist - php composer.phar update --prefer-dist - rm -f composer.phar + mv composer.phar build/tools/ + php build/tools/composer.phar install --prefer-dist + php build/tools/composer.phar update --prefer-dist else composer install --prefer-dist composer update --prefer-dist @@ -86,10 +87,10 @@ else endif ifeq (, $(shell which phpunit 2> /dev/null)) @echo "No phpunit command available, downloading a copy from the web" - curl -sSOL https://phar.phpunit.de/phpunit.phar - php phpunit.phar -c phpunit.xml - php phpunit.phar -c phpunit.integration.xml - rm -f phpunit.phar + mkdir -p build/tools + curl -sSL https://phar.phpunit.de/phpunit.phar -o build/tools/phpunit.phar + php build/tools/phpunit.phar -c phpunit.xml + php build/tools/phpunit.phar -c phpunit.integration.xml else phpunit -c phpunit.xml phpunit -c phpunit.integration.xml |