c# - How can you set Gendarme to run with Teamcity when doing a build? -


i have set teamcity server start working continous integration , having daily builds , when vcs check-in detected. me , team working on videogame, using unity game engine , c# programming language. have used gendarme manually on our project , can totally use benefits offers. trying make run build step of teamcity, can seem figure out how make work. have expirience combination of tools? experience shared apreciated.

thanks.

well did ended finding solution , i'am posting here interested can see it.

teamcity has command line build step can used using gendarme part of build process(for custom scripts going write here in workspace property of build step need put each of .exe's are). here console command needed it:

gendarme.exe --v --html your\path\to\save\report\gendarmereport.html --severity --confidence "path/to/your/project/library/scriptassemblies/assembly-csharp.dll" "path/to/your/project/library/scriptassemblies/assembly-csharp-firstpass.dll" "path/to/your/project/library/scriptassemblies/assembly-unityscript-firstpass.dll"

probably, if run build step after doing unity build assemblies here have been erased unity, need have console command build step before gendarme step, one:

unity.exe -batchmode -nographics -quit 

this make unity re-generate library folder contents , running gendarme build step after trcik. gendarme throw 1 exit code finishes report, report have been successful , every rule check also, think minor error, according manpages of gendarme code returned when

the runner execution successful either defects found or no assembly specified.

if assemblies been checked correctky, since have step re-generates them, can tell teamcity ignore exit code 1, can going build failure conditions of teamcity , unchecking option build process exit code not zero , that's all.

hope helps else interested in this.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -