Created
May 8, 2015 00:56
-
-
Save kimsk/267edeb6571dbb994481 to your computer and use it in GitHub Desktop.
pre-commit hook for greatfriends/ThaiBahtText (copy this file to ./git/hooks)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./Packages/xunit.runner.console.2.0.0/tools/xunit.console GFDN.ThaiBahtTextFacts/bin/Release/GreatFriends.ThaiBahtTextFacts.dll -parallel all -html Result.html -nologo -quiet |
ถ้าดูใน .git/hooks
จะมีหลายไฟล์ครับ สำหรับ push
ก็ใช้ไฟล์ pre-push ครับ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ผมเอาโค้ดใน test.bat มาใส่ในนี้ คราวนี้ทุกครั้งที่
commit
เทสต์ก็จะถูกรัน ถ้ารันผ่านก็commit
ถ้าไม่ผ่านก็จะไม่commit
ครับ