Build on commit with subversion

被刻印的时光 ゝ 提交于 2019-11-30 05:50:40
Mauricio Scheffer

Take a look at TeamCity's "pre-tested commit" a.k.a "delayed commit" a.k.a "private build" feature.

In a nutshell, you "commit" to TeamCity, TeamCity verifies your build and commits to the real repository only if the build passes. If not, you're told so. The advantage here is that your trunk is never broken. You can go here to read more about it https://confluence.jetbrains.com/display/TCDL/Pre-Tested+(Delayed)+Commit

TortoiseSVN has client-side hook scripts which you could use. For example, you could write a script which does the build and only returns true if the build was successful. Then add that script as a pre-commit hook.

You could also use CruiseControl, Hudson or another continuous integration tool.

These could run in the background, watch for changes and then build.

The method Stefan suggested seems to be potentially the best for you.

However an alternative depending on what your trying to gain, might be to run with some sort of Automated Continuous Integration so every time a commit is made a build / test will be run, then if there are problems it could raise an alert or whatever. Since your using visual studio guessing your using .NET so CruiseControl might be worth a look.

Well, you may also educate your co-workers if you are not willing to pay for special tools...

I think this might work for you since you use SVN.

In all what you are asking for is like what mausch suggested, a CI server. In that case TeamCity fits the bill.

But perhaps you didnt need all the bells and whistles that came with a CI server. Then SIN might work for you. Check it out if you have time!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!