Skip to content

Commit

Permalink
Bump cake to 0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Aug 4, 2019
1 parent 281164a commit a73a847
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 14 deletions.
15 changes: 9 additions & 6 deletions src/Cake.XCode.Tests/Cake.XCode.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.26.1" />
<PackageReference Include="Cake.Testing" Version="0.26.1" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
<PackageReference Include="Cake.Core" Version="0.33.0" />
<PackageReference Include="Cake.Testing" Version="0.33.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Cake.XCode.Tests/Fakes/FakeCakeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ public FakeCakeContext ()
var globber = new Globber (fileSystem, environment);
log = new FakeLog ();
var args = new FakeCakeArguments ();
var processRunner = new ProcessRunner (environment, log);
var registry = new WindowsRegistry ();
var toolRepo = new ToolRepository(environment);
var config = new Core.Configuration.CakeConfigurationProvider(fileSystem, environment).CreateConfiguration(testsDir, new Dictionary<string, string>());
var toolResolutionStrategy = new ToolResolutionStrategy(fileSystem, environment, globber, config);
var toolLocator = new ToolLocator(environment, toolRepo, toolResolutionStrategy);
context = new CakeContext(fileSystem, environment, globber, log, args, processRunner, registry, toolLocator);
var processRunner = new ProcessRunner(fileSystem, environment, log, toolLocator, config);
var dataService = new FakeDataService();
context = new CakeContext(fileSystem, environment, globber, log, args, processRunner, registry, toolLocator, dataService, config);
context.Environment.WorkingDirectory = testsDir;
}

Expand Down
20 changes: 20 additions & 0 deletions src/Cake.XCode.Tests/Fakes/FakeCakeDataService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Cake.Core;
using System.Collections.Generic;
using System.Linq;

namespace Cake.XCode.Tests.Fakes
{
public class FakeDataService : ICakeDataService
{
List<object> values = new List<object>();

public void Add<TData>(TData value) where TData : class
{
values.RemoveAll(v => v is TData);
values.Add(value);
}

public TData Get<TData>() where TData : class
=> values.FirstOrDefault(v => v is TData) as TData;
}
}
14 changes: 11 additions & 3 deletions src/Cake.XCode.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.XCode", "Cake.XCode\Cake.XCode.csproj", "{0E0EA411-ADFB-4A0D-A7C3-CA32E1DB2354}"
# Visual Studio Version 16
VisualStudioVersion = 16.0.29123.88
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cake.XCode", "Cake.XCode\Cake.XCode.csproj", "{0E0EA411-ADFB-4A0D-A7C3-CA32E1DB2354}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.XCode.Tests", "Cake.XCode.Tests\Cake.XCode.Tests.csproj", "{BA489A68-848C-4B01-AA8D-3E5A094EBCD8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cake.XCode.Tests", "Cake.XCode.Tests\Cake.XCode.Tests.csproj", "{BA489A68-848C-4B01-AA8D-3E5A094EBCD8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -20,4 +22,10 @@ Global
{BA489A68-848C-4B01-AA8D-3E5A094EBCD8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BA489A68-848C-4B01-AA8D-3E5A094EBCD8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {140FDDD1-52F3-49D7-9DAA-3603D796051F}
EndGlobalSection
EndGlobal
6 changes: 3 additions & 3 deletions src/Cake.XCode/Cake.XCode.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand All @@ -19,8 +19,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.26.1" />
<PackageReference Include="Cake.Common" Version="0.26.1" />
<PackageReference Include="Cake.Core" Version="0.33.0" />
<PackageReference Include="Cake.Common" Version="0.33.0" />
</ItemGroup>

</Project>

0 comments on commit a73a847

Please sign in to comment.