-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
2,294 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"cake.tool": { | ||
"version": "1.3.0", | ||
"commands": [ | ||
"dotnet-cake" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mode: ContinuousDeployment | ||
assembly-versioning-scheme: MajorMinorPatch | ||
next-version: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.0", | ||
"rollForward": "latestMinor", | ||
"allowPrerelease": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
#load nuget:?package=Cake.Recipe&version=1.0.0 | ||
#load nuget:?package=Cake.Recipe&version=3.1.1 | ||
|
||
//************************************************************************************************* | ||
// Settings | ||
//************************************************************************************************* | ||
|
||
Environment.SetVariableNames(); | ||
|
||
BuildParameters.SetParameters(context: Context, | ||
buildSystem: BuildSystem, | ||
sourceDirectoryPath: "./src", | ||
title: "Cake.GitHub", | ||
repositoryOwner: "cake-contrib", | ||
repositoryName: "Cake.GitHub", | ||
appVeyorAccountName: "cakecontrib", | ||
shouldRunDotNetCorePack: true, | ||
shouldRunDupFinder: false, | ||
shouldRunGitVersion: true); | ||
BuildParameters.SetParameters( | ||
context: Context, | ||
buildSystem: BuildSystem, | ||
sourceDirectoryPath: "./src", | ||
title: "Cake.GitHub", | ||
repositoryOwner: "cake-contrib", | ||
repositoryName: "Cake.GitHub", | ||
appVeyorAccountName: "cakecontrib", | ||
shouldUseDeterministicBuilds: true, | ||
shouldRunCodecov: false, | ||
shouldGenerateDocumentation: false, | ||
shouldRunInspectCode: false, | ||
shouldRunCoveralls: false, | ||
shouldRunDotNetCorePack: true); | ||
|
||
BuildParameters.PrintParameters(Context); | ||
|
||
ToolSettings.SetToolSettings(context: Context, | ||
dupFinderExcludePattern: new string[] { | ||
BuildParameters.RootDirectoryPath + "/src/Cake.GitHub.Tests/*.cs" }, | ||
testCoverageFilter: "+[*]* -[Microsoft.WindowsAzure.Storage]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[FakeItEasy]*", | ||
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", | ||
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); | ||
ToolSettings.SetToolSettings( | ||
context: Context, | ||
skipDuplicatePackages: true, | ||
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[Cake.GitHub.Reporting.Generic]LitJson.* -[Shouldly]* -[DiffEngine]* -[EmptyFiles]*", | ||
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", | ||
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); | ||
|
||
//************************************************************************************************* | ||
// Execution | ||
//************************************************************************************************* | ||
|
||
Build.RunDotNetCore(); | ||
Build.RunDotNetCore(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<AssemblyName>Cake.GitHub.Tests</AssemblyName> | ||
<PackageId>Cake.GitHub.Tests</PackageId> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<AssemblyName>Cake.GitHub.Tests</AssemblyName> | ||
<PackageId>Cake.GitHub.Tests</PackageId> | ||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles> | ||
<RuntimeFrameworkVersion>2.0.3</RuntimeFrameworkVersion> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Cake.Core" Version="0.33.0" /> | ||
<PackageReference Include="FakeItEasy" Version="4.5.1" /> | ||
<PackageReference Include="Microsoft.TestPlatform.TestHost" Version="15.7.0" /> | ||
<PackageReference Include="NETStandard.Library" Version="2.0.1" /> | ||
<PackageReference Include="xunit" Version="2.3.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Cake.GitHub\Cake.GitHub.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Cake.Core" Version="4.0.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" /> | ||
<PackageReference Include="xunit" Version="2.9.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Moq" Version="4.20.70" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Cake.GitHub\Cake.GitHub.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using System.IO; | ||
using Cake.Core.IO; | ||
|
||
namespace Cake.GitHub.Tests | ||
{ | ||
internal class FakeFile : IFile | ||
{ | ||
public FilePath Path { get; set; } | ||
|
||
public long Length | ||
{ | ||
get => throw new NotImplementedException(); | ||
set => throw new NotImplementedException(); | ||
} | ||
|
||
public FileAttributes Attributes | ||
{ | ||
get => throw new NotImplementedException(); | ||
set => throw new NotImplementedException(); | ||
} | ||
|
||
public bool Exists { get; set; } | ||
|
||
public bool Hidden => throw new NotImplementedException(); | ||
|
||
Core.IO.Path IFileSystemInfo.Path => Path; | ||
|
||
|
||
public FakeFile(FilePath path) | ||
{ | ||
Path = path; | ||
} | ||
|
||
public void Copy(FilePath destination, bool overwrite) => throw new NotImplementedException(); | ||
|
||
public void Delete() => throw new NotImplementedException(); | ||
|
||
public void Move(FilePath destination) => throw new NotImplementedException(); | ||
|
||
public Stream Open(FileMode fileMode, FileAccess fileAccess, FileShare fileShare) => new MemoryStream(); | ||
} | ||
} |
Oops, something went wrong.