Rash thoughts about .NET, C#, F# and Dynamics NAV.


"Every solution will only lead to new problems."

Wednesday, 15. April 2009


Integrating a “FAKE – F# Make” build script into TeamCity

Filed under: F#,FAKE - F# Make,Tools,Visual Studio — Steffen Forkmann at 11:00 Uhr

Easy TeamCity integration is one of the major goals for the FAKE build system.

“TeamCity is a Java-based build management and continuous integration server from JetBrains, creators of IntelliJ IDEA and ReSharper.”

[Wikipedia]

In this article I will show you how you can set up a FAKE build script in TeamCity. We will use the CalculatorSample which you can download from the FAKE Download page. If you want to know how this build script works read the “Getting started with FAKE”-tutorial.

Installing TeamCity

You can download the free professional edition of TeamCity from http://www.jetbrains.com/teamcity/. After the installation process (further instructions) you should be ready to configure your first build.

Creating a FAKE Project

Now create a new project and add a build configuration:

image

image

Attach a VCS root

The next step is to attach a VCS root. For this sample we will use the official FAKE repository at https://github.com/forki/FAKE/.

image

image

image
Choosing a build runner

We can use the Command Line build runner to start the completeBuild.fsx build script via Fake.exe.

image

If you want you could also add a build trigger to your build script:

image

Running the build

Now if everything is configured correctly, you can run your build and the output should look like:

image

You can also inspect the NUnit and FxCop results:

image

image

Tags: , , , , , , ,

Verwandte Artikel

1 Comment »

  1. [...] If you want to set up “FAKE – F# Make” build configurations in TeamCity please read “Integrating a "FAKE – F# Make" build script into TeamCity”. [...]

    Pingback by Integrating a “FAKE – F# Make” build script into CruiseControl.NET » Rash thoughts about .NET, C#, F# and Dynamics NAV. — Wednesday, 14. October 2009 um 10:39 Uhr

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .