Skip to content

abuzhynsky/teamcity-pvs-studio-meta-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamCity PVS Studio Meta-Runner

Integrate PVS Studio inspections with TeamCity.

This plugin adds new build step type 'PVS Studio'. It analyzes your solution with PVS Studio and imports reports into TeamCity 'Code Inspection' tab. You have to specify your solution file and path to PVS Studio installation folder.

If PVS Studio is not registered you'll see 'TRIAL RESTRICTION' instead of file names. Even though there is information regarding project, warning message and line number. So if your commits are atomic and you run build on every commit this analysis can be quite useful. Anyway it's better to purchase licence.

The plugin has been tested on Team City 9.1.5, but should work with any version of Team City 9.

Installation

  1. Install PVS Studio on build agent
  2. Ensure you have default settings file for PVS Studio. It can be found here (%AppData%/PVS-Studio/Settings.xml). If TeamCity build agent is running under System account settings file should be here (C:\Windows\System32\config\systemprofile\AppData\Roaming\PVS-Studio\Settings.xml)
  3. Download 'pvs-studio-build-runner.zip' from the latest release
  4. Copy this file into the [Team City Data Directory]\plugins directory on the TeamCity Server, by default this is C:\ProgramData\JetBrains\TeamCity\plugins or upload it using TeamCity 'Plugins List' tab (Administration-Plugins List)
  5. Restart the Team City server

'PVS Studio' build step type should now be available.

Building the plugin

To build the plugin from code, use MSBuild to run package.msbuild, this will create the pvs-studio-build-runner.zip file. The MSBuild Community Tasks must be installed to run this.

Credits

Inspired by Team City xUnit Meta Runner.