In the Microsoft development world, I hear a lot of "non-process-oriented" developers intermix the terms "build" and "compile". I can understand why; I used to be that way myself. For example, if I look at even the new VS2008, the "Build" menu will by default just compile your solution. Sure, you can add pre-build and post-build command line calls, but the point is that out-of-the-box, if you just use VS2008 on a small project, it's easy to think that "building" means "to just compile your code".
Building is so much more, hence Microsoft shipped MSBuild back in 2005. A full build process may include many steps, of which compilation is just one:
Check out source code
Run active code-generation
Ensure external data stores can be upgraded (i.e. nothing broke the database schema)
Compile
Run unit tests (ideally with code coverage)
Run other tests (performance, stress, functional, etc...)
Run static code analysis
Create MSI install packages
Publish those packages somewhere
Publish results to the team (i.e. email/rss feed the build's status)
A lot of developers have CruiseControl running on a dedicated build server, kicking off an MSBuild (or maybe an NAnt) script to run all this.
So, the moral is that "Build" != "Compile". Rather, Compile is just a subset of Build.
No comments:
Post a Comment