mirror of
https://github.com/brunofontes/Memsource-API.git
synced 2024-11-23 19:00:50 +00:00
Added Makefile to install the hook for automatic test
This commit is contained in:
parent
dc437d7044
commit
8e14eb86b3
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",
|
"type": "vcs",
|
||||||
"url": "https://github.com/brunofontes/Memsource-API"
|
"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
|
||||||
|
Loading…
Reference in New Issue
Block a user