AnFake Runner for TeamCity
Provides TeamCity build runner which executes AnFake scripts.
Build
mvn package
Install to TeamCity
- Copy 'anfake-runner/target/anfake-runner-1.0.zip' to '<TeamCity Data Directory>/plugins' directory.
- Restart the TeamCity server and check 'Administration > Plugins List' to verify the plugin was installed correctly.
Setup Build Configuration
- Add the first build step with runner 'AnFake Restore'. This step restores NuGet solution-level packages (usually this is just AnFake itself).
- Add the second step: 'AnFake Runner'. This step runs AnFake with specified build script (default: build.fsx) and targets (default: Build).
TFS
If you use TFS version control then you need some additional setup.
- In 'Version Control Settings > VCS checkout mode' select 'Do not checkout automatically'.
- Add build step 'AnFake TFS Workspacer' before 'AnFake Restore'. This step checks out the workspace definition file ('.workspace') creates TFS workspace with appropriate mappings and downloads all necessary sources.