mirror of
https://github.com/brunofontes/Memsource-API.git
synced 2025-11-17 02:30:54 -03:00
Improving Makefile and PHPUNIT dependency on composer.json
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,8 +1,10 @@
|
||||
install:
|
||||
composer update
|
||||
command -v composer && composer install || echo "Please, install Composer to use tests"
|
||||
command -v phpunit || command -v composer && composer require --dev phpunit/phpunit ^8
|
||||
chmod +x ./pre-push.sh
|
||||
mkdir -p .git/hooks
|
||||
ln -fs ../../pre-push.sh .git/hooks/pre-push
|
||||
|
||||
uninstall:
|
||||
rm -f ./.git/hooks/pre-push
|
||||
if [ -d "./vendor/phpunit" ] ; then composer remove --dev phpunit/phpunit; fi
|
||||
|
||||
Reference in New Issue
Block a user