Improving Your Build Process

后端 未结 8 1066
傲寒
傲寒 2021-01-30 09:09

Or, actually establishing a build process when there isn\'t much of one in place to begin with.

Currently, that\'s pretty much the situation my group faces. We do web-a

8条回答
  •  渐次进展
    2021-01-30 10:07

    When taking on a project that has never had an automated build process, it is easier to take it in steps. Do not try to swallow to much at one time, otherwise it can feel overwhelming.

    1. First get your code compiling with one step using an automated build program (i.e. nant/msbuild). I am not going to debate which one is better. Find one that feels comfortable to you and use it. Have the build scripts live with the project in source control.
    2. Figure out how you want your automated build to be triggered. Whether it is hooking it up to CruiseControl or running a nightly build task using Scheduled Tasks. CruiseControl or TeamCity is probably the best choice for this, because they include a lot of tools you can use to make this step easier. CruiseControl is free and TeamCity is free to a point, where you might have to pay for it depending on how big the project is.
    3. Ok, by this point you will be pretty comfortable with the tools. Now you are ready to add more tasks based on what you want to do for testing, deployment, and etc...

    Hope this helps.

提交回复
热议问题