We have BullsEye Coverage installed on all the TeamCity agents and there's a nightly script which turns on BullsEye, rebuilds my project, runs unit tests and then turns BullsEye off. The BullsEye bin directory is not in the path of the machines and my script adds the path prior to running. (The path is added only as part of the script for that session only and is not set permanently for the entire machine).
Lately I have noticed in the TeamCity build log that all projects (the regular ones, not just the ones which are configured to run coverage) use the BullsEye compiler. Here's an example from the log:
[11:29:38] [bsii_algorithms\build\vc10\bsii_algorithms.vcxproj] ClCompile (8s)
[11:29:38] [ClCompile] CL (3s)
[11:29:38] [CL] C:\Program Files (x86)\BullseyeCoverage\bin\CL.exe /c /I..\..\include /I..\..\..\bsii_common\include ...
Also, one of the projects builds really slow. Specifically, "ResolveProjectReferences" takes about 20 minutes. I read online that this could happen because some sort of analysis is turned on. So I logged in to the server using the TeamCity user and turned BullsEye off again. But it didn't help.
So my questions are:
- Is it OK that everything is compiled with the compiler from the BullsEye folder even though BullsEye is not in the machine path?
- How can I configure the machine so that only the coverage scripts use the BullsEye compiler?
- Can this be the reason builds are taking a long time?
Thanks!