Build on commit with subversion

前端 未结 6 537
北荒
北荒 2020-12-29 16:50

Simple question. I use Visual studio and I\'ve just installed subversion, how can i force the project to be build with msbuild, and if successfully build commit it else warn

相关标签:
6条回答
  • 2020-12-29 17:12

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

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

    0 讨论(0)
  • 2020-12-29 17:16

    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

    0 讨论(0)
  • 2020-12-29 17:18

    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.

    0 讨论(0)
  • 2020-12-29 17:18

    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.

    0 讨论(0)
  • 2020-12-29 17:18

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

    0 讨论(0)
  • 2020-12-29 17:25

    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!

    0 讨论(0)
提交回复
热议问题