简体   繁体   English

如何在git commit上运行shell脚本

[英]how to run a shell script on git commit

1) 1)

i have a shell script which basically contains some(database testing and integrating test code) , 我有一个shell脚本,它基本上包含一些(数据库测试和集成测试代码),

but i have to run this shell script when ever there is commit (or any change ) in my git repo the script should execute how can i achieve this 但是当我的git repo中有提交(或任何更改)时,我必须运行此shell脚本,脚本应该执行如何实现此目的

os. 操作系统。 Debian 6.0.1 amazon ec2 Debian 6.0.1 Amazon EC2

i am trying something like Travis for continues integration .. 我正在尝试像Travis这样的东西来继续集成..

2) 2)

for GUI testing in Debian like OS which is better selenium or casper.js 用于Debian之类的OS中的GUI测试,它是更好的硒或casper.js

or is the any other beter alternative 还是其他更好的选择

so please help me 所以请帮我

关于您的第一个问题:您正在寻找提交后挂钩。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM