mirror of
https://github.com/brunofontes/Memsource-API.git
synced 2025-11-17 02:30:54 -03:00
Added Makefile to install the hook for automatic test
This commit is contained in:
8
Makefile
Normal file
8
Makefile
Normal file
@@ -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
|
||||
@@ -20,5 +20,8 @@
|
||||
"type": "vcs",
|
||||
"url": "https://github.com/brunofontes/Memsource-API"
|
||||
}
|
||||
]
|
||||
],
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.2"
|
||||
}
|
||||
}
|
||||
|
||||
2
pre-push.sh
Normal file → Executable file
2
pre-push.sh
Normal file → Executable file
@@ -1 +1 @@
|
||||
phpunit --bootstrap vendor/autoload.php tests --testdox --color
|
||||
./vendor/phpunit/phpunit/phpunit --bootstrap vendor/autoload.php tests --testdox --color
|
||||
|
||||
Reference in New Issue
Block a user