Skip to content

Commit ae5efa0

Browse files
committed
Add skeleton for the FAKE - F# Make task
1 parent 2c26e64 commit ae5efa0

4 files changed

Lines changed: 96 additions & 2 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using NUnit.Framework;
6+
using Rhino.Mocks;
7+
8+
namespace ThoughtWorks.CruiseControl.UnitTests.Core.Tasks
9+
{
10+
[TestFixture]
11+
public class FakeTaskTest
12+
{
13+
private MockRepository mocks;
14+
15+
[SetUp]
16+
public void Setup()
17+
{
18+
mocks = new MockRepository();
19+
}
20+
}
21+
}

project/UnitTests/UnitTests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
22
<PropertyGroup>
33
<ProjectType>Local</ProjectType>
4-
<ProductVersion>9.0.30729</ProductVersion>
4+
<ProductVersion>9.0.21022</ProductVersion>
55
<SchemaVersion>2.0</SchemaVersion>
66
<ProjectGuid>{3F93AC24-DF56-469E-91C3-43A2A179C7E1}</ProjectGuid>
77
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -359,6 +359,7 @@
359359
<Compile Include="Core\Label\AssemblyVersionLabellerTest.cs" />
360360
<Compile Include="Core\SourceControl\VstsTest.cs" />
361361
<Compile Include="Core\Tasks\CruiseServerControlTaskTests.cs" />
362+
<Compile Include="Core\Tasks\FakeTaskTest.cs" />
362363
<Compile Include="Core\Triggers\RollUpTriggerTest.cs" />
363364
<Compile Include="Core\Util\InstanceAssert.cs" />
364365
<Compile Include="Core\Util\PrivateArgumentsTests.cs" />

project/core/core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
22
<PropertyGroup>
33
<ProjectType>Local</ProjectType>
4-
<ProductVersion>9.0.30729</ProductVersion>
4+
<ProductVersion>9.0.21022</ProductVersion>
55
<SchemaVersion>2.0</SchemaVersion>
66
<ProjectGuid>{F8113DB9-6C47-4FD1-8A01-655FCF151747}</ProjectGuid>
77
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -853,6 +853,7 @@
853853
<Compile Include="tasks\DirectDynamicValue.cs" />
854854
<Compile Include="tasks\DupFinderTask.cs" />
855855
<Compile Include="tasks\DynamicValueUtility.cs" />
856+
<Compile Include="tasks\FakeTask.cs" />
856857
<Compile Include="tasks\FBVariable.cs" />
857858
<Compile Include="tasks\FtpTask.cs" />
858859
<Compile Include="tasks\GeneralTaskResult.cs" />

project/core/tasks/FakeTask.cs

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Diagnostics;
4+
using System.Linq;
5+
using System.Text;
6+
using Exortech.NetReflector;
7+
using ThoughtWorks.CruiseControl.Core.Tasks;
8+
9+
namespace ThoughtWorks.CruiseControl.Core.tasks
10+
{
11+
/// <summary>
12+
/// <title>FAKE Task</title>
13+
/// <para>Runs a FAKE - F# Make script.</para>
14+
/// <version>1.6</version>
15+
/// <para>
16+
/// "FAKE - F# Make" is a build automation system. Due to its integration in F#, all benets of the .NET Framework and
17+
/// functional programming can be used, including the extensive class library,
18+
/// powerful debuggers and integrated development environments like
19+
/// Visual Studio 2008 or SharpDevelop, which provide syntax highlighting and code completion.
20+
///
21+
/// The Google group can be found at: http://groups.google.com/group/fsharpMake
22+
/// More information on: http://bitbucket.org/forki/fake/wiki/Home
23+
/// </para>
24+
/// </summary>
25+
[ReflectorType("fake")]
26+
public class FakeTask : BaseExecutableTask
27+
{
28+
#region Overrides of TaskBase
29+
30+
/// <summary>
31+
/// Execute the actual task functionality.
32+
/// </summary>
33+
/// <param name="result">The result to use.</param>
34+
/// <returns><c>true</c> if the task was successful; <c>false</c> otherwise.</returns>
35+
protected override bool Execute(IIntegrationResult result)
36+
{
37+
throw new NotImplementedException();
38+
}
39+
40+
#endregion
41+
42+
#region Overrides of BaseExecutableTask
43+
44+
protected override string GetProcessFilename()
45+
{
46+
throw new NotImplementedException();
47+
}
48+
49+
protected override string GetProcessArguments(IIntegrationResult result)
50+
{
51+
throw new NotImplementedException();
52+
}
53+
54+
protected override string GetProcessBaseDirectory(IIntegrationResult result)
55+
{
56+
throw new NotImplementedException();
57+
}
58+
59+
protected override ProcessPriorityClass GetProcessPriorityClass()
60+
{
61+
throw new NotImplementedException();
62+
}
63+
64+
protected override int GetProcessTimeout()
65+
{
66+
throw new NotImplementedException();
67+
}
68+
69+
#endregion
70+
}
71+
}

0 commit comments

Comments
 (0)