What steps can I take to optimize build time in TeamCity?

I'm currently trying to reduce the time spent compiling and unit test projects in TeamCity.

Currently, my project takes 5 to 8 minutes.

What does he do:

  • Clear all existing files
  • Compile each project
  • Create an installer

Once this is done, module testing will begin, and it will take about 2 minutes to complete it.

What does he do:

  • Clear all existing files
  • Compile each project
  • Run all unit tests

Now it takes only 5 seconds to run unit tests .... so the cleanup and compilation step takes about 2 minutes .... and the installation creation step is 3 to 6 minutes.

: , , . , , , .

: 5 8 ? , ?

, , - , , , , .

, Nate:

TeamCity, / ? , , , script . , , unit-test .., - vs unit test.

, ? , , , , , unit test, , , .

? Nant , wix , NUnit NCover .

? Subversion

+3
2

# 1: TeamCity, / , ? , ?

? ?

- . . , . / . , / . - ?

+3

, , , .

+1

Source: https://habr.com/ru/post/1712828/


All Articles