Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove FSharp support #1404

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Build.NetCoreTesting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ partial class Build
.Executes(() =>
{
const string testFilter =
"TestCategory != Windows & TestCategory != fsharp & TestCategory != scriptcs & TestCategory != PlatformAgnostic & TestCategory != RunOnceOnWindowsAndLinux";
"TestCategory != Windows & TestCategory != scriptcs & TestCategory != PlatformAgnostic & TestCategory != RunOnceOnWindowsAndLinux";

DotNetTasks.DotNetTest(settings => settings
.SetProjectFile("Binaries/Calamari.Tests.dll")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ await CommandTestBuilder.CreateAsync<DeployAzureResourceGroupCommand, Program>()
context.Variables.Add(KnownVariables.Package.EnabledFeatures, KnownVariables.Features.CustomScripts);
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.Deploy, ScriptSyntax.PowerShell), psScript);
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.PreDeploy, ScriptSyntax.CSharp), "Console.WriteLine(\"Hello from C#\");");
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.PostDeploy, ScriptSyntax.FSharp), "printfn \"Hello from F#\"");

context.WithFilesToCopy(packagePath);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ await CommandTestBuilder.CreateAsync<DeployAzureResourceGroupCommand, Program>()
context.Variables.Add(KnownVariables.Package.EnabledFeatures, KnownVariables.Features.CustomScripts);
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.Deploy, ScriptSyntax.PowerShell), psScript);
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.PreDeploy, ScriptSyntax.CSharp), "Console.WriteLine(\"Hello from C#\");");
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.PostDeploy, ScriptSyntax.FSharp), "printfn \"Hello from F#\"");

context.WithFilesToCopy(packagePath);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class AzureServiceFabricPowerShellContextFixture
[Test]
[TestCase("Endpoint", ScriptSyntax.PowerShell, true)]
[TestCase("", ScriptSyntax.PowerShell, false)]
[TestCase("Endpoint", ScriptSyntax.FSharp, false)]
public void ShouldBeEnabled(string connectionEndpoint, ScriptSyntax syntax, bool expected)
{
var variables = new CalamariVariables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,11 @@ await CommandTestBuilder.CreateAsync<DeployAzureWebCommand, Program>()
context.Variables.Add(KnownVariables.Package.EnabledFeatures, KnownVariables.Features.CustomScripts);
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.Deploy, ScriptSyntax.PowerShell), psScript);
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.PreDeploy, ScriptSyntax.CSharp), "Console.WriteLine(\"Hello from C#\");");
context.Variables.Add(KnownVariables.Action.CustomScripts.GetCustomScriptStage(DeploymentStages.PostDeploy, ScriptSyntax.FSharp), "printfn \"Hello from F#\"");
context.WithFilesToCopy(tempPath.DirectoryPath);
})
.WithAssert(result =>
{
result.FullLog.Should().Contain("Hello from C#");
result.FullLog.Should().Contain("Hello from F#");
})
.Execute();

Expand Down
1 change: 0 additions & 1 deletion source/Calamari.Common/Calamari.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@

<ItemGroup>
<EmbeddedResource Include="Features\Scripting\Bash\Bootstrap.sh" />
<EmbeddedResource Include="Features\Scripting\FSharp\Bootstrap.fsx" />
<EmbeddedResource Include="Features\Scripting\Python\Configuration.py" />
<EmbeddedResource Include="Features\Scripting\Python\InstallDependencies.py" />
<EmbeddedResource Include="Features\Scripting\DotnetScript\Bootstrap.csx" />
Expand Down
1 change: 0 additions & 1 deletion source/Calamari.Common/FeatureToggles/FeatureToggle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public enum FeatureToggle {
ModernAzureSdkFeatureToggle,
OidcAccountsFeatureToggle,
AsynchronousAzureZipDeployFeatureToggle,
FSharpDeprecationFeatureToggle,
AzureRMDeprecationFeatureToggle,
PreventHelmV2DeploymentsFeatureToggle,
KubernetesLiveObjectStatusFeatureToggle,
Expand Down
18 changes: 0 additions & 18 deletions source/Calamari.Common/Features/Scripting/FSharp/Bootstrap.fsi

This file was deleted.

188 changes: 0 additions & 188 deletions source/Calamari.Common/Features/Scripting/FSharp/Bootstrap.fsx

This file was deleted.

Loading