diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4b49b48 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +install: + composer update + 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 diff --git a/composer.json b/composer.json index 1409ed3..3918706 100644 --- a/composer.json +++ b/composer.json @@ -20,5 +20,8 @@ "type": "vcs", "url": "https://github.com/brunofontes/Memsource-API" } - ] + ], + "require-dev": { + "phpunit/phpunit": "^8.2" + } } diff --git a/pre-push.sh b/pre-push.sh old mode 100644 new mode 100755 index 753b160..490abf6 --- a/pre-push.sh +++ b/pre-push.sh @@ -1 +1 @@ -phpunit --bootstrap vendor/autoload.php tests --testdox --color +./vendor/phpunit/phpunit/phpunit --bootstrap vendor/autoload.php tests --testdox --color