Skip to content

Commit c814fd1

Browse files
committed
(maint) Renormalize line endings
This was done using the following command: git add --renormalize .
1 parent b52c07f commit c814fd1

File tree

5 files changed

+125
-125
lines changed

5 files changed

+125
-125
lines changed

recipe.cake

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
#load nuget:?package=Cake.Recipe&version=2.2.1
2-
3-
Environment.SetVariableNames();
4-
5-
BuildParameters.SetParameters(context: Context,
6-
buildSystem: BuildSystem,
7-
sourceDirectoryPath: "./src",
8-
title: "Cake.AppVeyor",
9-
repositoryOwner: "cake-contrib",
10-
repositoryName: "Cake.AppVeyor",
11-
appVeyorAccountName: "cakecontrib",
12-
shouldRunDotNetCorePack: true,
13-
shouldRunDupFinder: false,
14-
shouldRunInspectCode: false,
15-
testFilePattern: "DO_NOT_RUN_TESTS",
16-
preferredBuildProviderType: BuildProviderType.GitHubActions);
17-
18-
BuildParameters.PrintParameters(Context);
19-
20-
ToolSettings.SetToolSettings(context: Context,
21-
dupFinderExcludePattern: new string[] {
22-
BuildParameters.RootDirectoryPath + "/Cake.AppVeyor.Tests/*.cs" },
23-
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[FakeItEasy]*",
24-
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
25-
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
26-
Build.RunDotNetCore();
1+
#load nuget:?package=Cake.Recipe&version=2.2.1
2+
3+
Environment.SetVariableNames();
4+
5+
BuildParameters.SetParameters(context: Context,
6+
buildSystem: BuildSystem,
7+
sourceDirectoryPath: "./src",
8+
title: "Cake.AppVeyor",
9+
repositoryOwner: "cake-contrib",
10+
repositoryName: "Cake.AppVeyor",
11+
appVeyorAccountName: "cakecontrib",
12+
shouldRunDotNetCorePack: true,
13+
shouldRunDupFinder: false,
14+
shouldRunInspectCode: false,
15+
testFilePattern: "DO_NOT_RUN_TESTS",
16+
preferredBuildProviderType: BuildProviderType.GitHubActions);
17+
18+
BuildParameters.PrintParameters(Context);
19+
20+
ToolSettings.SetToolSettings(context: Context,
21+
dupFinderExcludePattern: new string[] {
22+
BuildParameters.RootDirectoryPath + "/Cake.AppVeyor.Tests/*.cs" },
23+
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[FakeItEasy]*",
24+
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
25+
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
26+
Build.RunDotNetCore();

src/Cake.AppVeyor.Tests/AppVeyorTests.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
using System;
33
using System.Linq;
44
using Cake.AppVeyor;
5-
using Cake.AppVeyor.Fakes;
6-
5+
using Cake.AppVeyor.Fakes;
6+
77
namespace Cake.AppVeyor.Tests
88
{
99
public class AppVeyorTests : IDisposable
@@ -15,17 +15,17 @@ public class AppVeyorTests : IDisposable
1515

1616
readonly string apiToken = Keys.AppVeyorApiToken;
1717

18-
public AppVeyorTests()
19-
{
20-
context = new FakeCakeContext();
21-
}
22-
23-
public void Dispose()
24-
{
25-
context.DumpLogs();
18+
public AppVeyorTests()
19+
{
20+
context = new FakeCakeContext();
21+
}
22+
23+
public void Dispose()
24+
{
25+
context.DumpLogs();
2626
}
2727

28-
[Fact]
28+
[Fact]
2929
public void GetProjects ()
3030
{
3131
var projects = context.CakeContext.AppVeyorProjects (apiToken);
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<TargetFrameworks>net50;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<PackageReference Include="Cake.Core" Version="1.0.0" />
9-
<PackageReference Include="Cake.Testing" Version="1.0.0" />
10-
<PackageReference Include="coverlet.msbuild" Version="3.0.3">
11-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12-
<PrivateAssets>all</PrivateAssets>
13-
</PackageReference>
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
15-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
16-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17-
<PrivateAssets>all</PrivateAssets>
18-
</PackageReference>
19-
<PackageReference Include="NSubstitute" Version="4.0.0" />
20-
<PackageReference Include="Refit" version="4.6.58" />
21-
<PackageReference Include="xunit" Version="2.4.1" />
22-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
23-
</ItemGroup>
24-
25-
<ItemGroup>
26-
<ProjectReference Include="..\Cake.AppVeyor\Cake.AppVeyor.csproj" />
27-
</ItemGroup>
28-
29-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net50;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Cake.Core" Version="1.0.0" />
9+
<PackageReference Include="Cake.Testing" Version="1.0.0" />
10+
<PackageReference Include="coverlet.msbuild" Version="3.0.3">
11+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12+
<PrivateAssets>all</PrivateAssets>
13+
</PackageReference>
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
15+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
16+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17+
<PrivateAssets>all</PrivateAssets>
18+
</PackageReference>
19+
<PackageReference Include="NSubstitute" Version="4.0.0" />
20+
<PackageReference Include="Refit" version="4.6.58" />
21+
<PackageReference Include="xunit" Version="2.4.1" />
22+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
23+
</ItemGroup>
24+
25+
<ItemGroup>
26+
<ProjectReference Include="..\Cake.AppVeyor\Cake.AppVeyor.csproj" />
27+
</ItemGroup>
28+
29+
</Project>

src/Cake.AppVeyor.Tests/Keys.cs

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
using System;
2-
using System.IO;
3-
4-
namespace Cake.AppVeyor.Tests
5-
{
6-
public static class Keys
7-
{
8-
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
9-
10-
static string appVeyorApiToken;
11-
12-
public static string AppVeyorApiToken {
13-
get
14-
{
15-
if (appVeyorApiToken == null)
16-
{
17-
// Check for a local file with a token first
18-
var localFile = Path.Combine(AppContext.BaseDirectory, "..", "..", "..", "..", "..", ".appveyorapitoken");
19-
if (File.Exists(localFile))
20-
appVeyorApiToken = File.ReadAllText(localFile);
21-
22-
// Next check for an environment variable
23-
if (string.IsNullOrEmpty(appVeyorApiToken))
24-
appVeyorApiToken = Environment.GetEnvironmentVariable("test_appveyor_api_token");
25-
26-
// Finally use the const value
27-
if (string.IsNullOrEmpty(appVeyorApiToken))
28-
appVeyorApiToken = YOUR_APPVEYOR_API_TOKEN;
29-
}
30-
31-
return appVeyorApiToken;
32-
}
33-
}
34-
}
35-
}
36-
1+
using System;
2+
using System.IO;
3+
4+
namespace Cake.AppVeyor.Tests
5+
{
6+
public static class Keys
7+
{
8+
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
9+
10+
static string appVeyorApiToken;
11+
12+
public static string AppVeyorApiToken {
13+
get
14+
{
15+
if (appVeyorApiToken == null)
16+
{
17+
// Check for a local file with a token first
18+
var localFile = Path.Combine(AppContext.BaseDirectory, "..", "..", "..", "..", "..", ".appveyorapitoken");
19+
if (File.Exists(localFile))
20+
appVeyorApiToken = File.ReadAllText(localFile);
21+
22+
// Next check for an environment variable
23+
if (string.IsNullOrEmpty(appVeyorApiToken))
24+
appVeyorApiToken = Environment.GetEnvironmentVariable("test_appveyor_api_token");
25+
26+
// Finally use the const value
27+
if (string.IsNullOrEmpty(appVeyorApiToken))
28+
appVeyorApiToken = YOUR_APPVEYOR_API_TOKEN;
29+
}
30+
31+
return appVeyorApiToken;
32+
}
33+
}
34+
}
35+
}
36+

src/Cake.AppVeyor.sln

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppVeyor", "Cake.AppVeyor\Cake.AppVeyor.csproj", "{4C17304B-F2D3-4681-97EA-2B669811E247}"
5-
EndProject
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppVeyor.Tests", "Cake.AppVeyor.Tests\Cake.AppVeyor.Tests.csproj", "{698804E5-4BEB-4076-89A1-255A2646B9FF}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{4C17304B-F2D3-4681-97EA-2B669811E247}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{4C17304B-F2D3-4681-97EA-2B669811E247}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{4C17304B-F2D3-4681-97EA-2B669811E247}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{4C17304B-F2D3-4681-97EA-2B669811E247}.Release|Any CPU.Build.0 = Release|Any CPU
18-
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19-
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
21-
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Release|Any CPU.Build.0 = Release|Any CPU
22-
EndGlobalSection
23-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppVeyor", "Cake.AppVeyor\Cake.AppVeyor.csproj", "{4C17304B-F2D3-4681-97EA-2B669811E247}"
5+
EndProject
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppVeyor.Tests", "Cake.AppVeyor.Tests\Cake.AppVeyor.Tests.csproj", "{698804E5-4BEB-4076-89A1-255A2646B9FF}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{4C17304B-F2D3-4681-97EA-2B669811E247}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{4C17304B-F2D3-4681-97EA-2B669811E247}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{4C17304B-F2D3-4681-97EA-2B669811E247}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{4C17304B-F2D3-4681-97EA-2B669811E247}.Release|Any CPU.Build.0 = Release|Any CPU
18+
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{698804E5-4BEB-4076-89A1-255A2646B9FF}.Release|Any CPU.Build.0 = Release|Any CPU
22+
EndGlobalSection
23+
EndGlobal

0 commit comments

Comments
 (0)