It is possible to setup your build server to run code analysis on your solution/projects, without having to install VS on your build server.
The answer is here: http://stackoverflow.com/a/21731245/3181
I’m not going to reproduce the code here, there is no point. This post is just a reminder to myself as to where I found the solution to this.