Skip to content

Commit

Permalink
Merge branch 'release/0.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
RLittlesII committed May 9, 2019
2 parents b2a54b9 + 689adf4 commit a1740e7
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ branches:
#---------------------------------#
cache:
- src\packages -> src\**\packages.config
- tools -> setup.cake
- tools -> setup.cake, tools/packages.config
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
language: csharp
script:
- ./build.sh -v diagnostic
- ./build.sh --verbosity=diagnostic

os:
- linux
- osx

# Ubuntu 16.04
sudo: required
dist: xenial

mono:
- latest
dotnet: 2.1.502

cache:
directories:
- packages
Expand Down
2 changes: 1 addition & 1 deletion nuspec/nuget/Cake.Plist.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<summary>The Plist Addin for Cake allows you to serialize and deserialize xml plists directly from .NET source code.</summary>
<licenseUrl>https://github.com/cake-contrib/Cake.Plist/blob/develop/LICENSE</licenseUrl>
<projectUrl>https://github.com/cake-contrib/Cake.Plist</projectUrl>
<iconUrl>https://cdn.rawgit.com/cake-contrib/graphics/a5cf0f881c390650144b2243ae551d5b9f836196/png/cake-contrib-medium.png</iconUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/cake-contrib/graphics/png/cake-contrib-medium.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright (c) Cake Contributions 2016 - Present</copyright>
<tags>Cake Script Plist</tags>
Expand Down
2 changes: 1 addition & 1 deletion setup.cake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BuildParameters.PrintParameters(Context);

ToolSettings.SetToolSettings(context: Context,
dupFinderExcludePattern: new string[] {
BuildParameters.RootDirectoryPath + "/src/Cake.Plist.Tests/*.cs", BuildParameters.RootDirectoryPath + "/Src/Cake.Plist/**/*.AssemblyInfo.cs" },
BuildParameters.RootDirectoryPath + "/src/Cake.Plist.Tests/*.cs", BuildParameters.RootDirectoryPath + "/src/Cake.Plist/**/*.AssemblyInfo.cs" },
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* ",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
Expand Down
16 changes: 6 additions & 10 deletions src/Cake.Plist.Tests/Cake.Plist.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.26.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Cake.Testing" Version="0.26.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="NSubstitute" Version="3.1.0" />
<PackageReference Include="Cake.Core" Version="0.33.0" />
<PackageReference Include="Cake.Testing" Version="0.33.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="NSubstitute" Version="4.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 3 additions & 5 deletions src/Cake.Plist.Tests/Issues/Issue3Tests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using Cake.Core;
using Cake.Testing;
using NSubstitute;
using Xunit;

namespace Cake.Plist.Tests.Issues
{
using Core.IO;
using Xunit;

public class Issue3Tests
{
[Fact]
[WindowsFact]
public void CanDeserializePlist()
{
// Arrange
Expand All @@ -26,4 +24,4 @@ public void CanDeserializePlist()
Assert.NotNull(plist);
}
}
}
}
16 changes: 7 additions & 9 deletions src/Cake.Plist.Tests/PlistAliasTests.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
using Cake.Core;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Cake.Core;
using Cake.Testing;
using NSubstitute;
using Xunit;

namespace Cake.Plist.Tests
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Core.IO;
using Xunit;

public class PlistAliasTests
{
[Fact]
[WindowsFact]
public void Deserialize_missing_file_throws_exception()
{
var environment = FakeEnvironment.CreateWindowsEnvironment();
Expand All @@ -24,7 +22,7 @@ public void Deserialize_missing_file_throws_exception()
Assert.Throws<FileNotFoundException>(() => PlistAliases.DeserializePlist(context, "./file-doesnt-exist"));
}

[Fact]
[WindowsFact]
public void Read_write_compare()
{
// Arrange
Expand Down
17 changes: 8 additions & 9 deletions src/Cake.Plist.Tests/PlistConvertTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using Cake.Core;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Cake.Core;
using Xunit;

namespace Cake.Plist.Tests
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Xunit;

public sealed class PlistConvertTests
{
[Theory]
Expand Down
24 changes: 24 additions & 0 deletions src/Cake.Plist.Tests/WindowsFact.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System.Runtime.InteropServices;
using Cake.Core;
using Xunit;

namespace Cake.Plist.Tests
{
public sealed class WindowsFact : FactAttribute
{
private static readonly PlatformFamily _family;

static WindowsFact()
{
_family = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? PlatformFamily.Windows : PlatformFamily.Unknown;
}

public WindowsFact(string reason = null)
{
if (_family != PlatformFamily.Windows)
{
Skip = reason ?? "Windows test.";
}
}
}
}
12 changes: 0 additions & 12 deletions src/Cake.Plist.Tests/packages.config

This file was deleted.

10 changes: 2 additions & 8 deletions src/Cake.Plist/Cake.Plist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>Cake.Plist.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net46|AnyCPU'">
<DefineConstants>TRACE;DEBUG;net46;</DefineConstants>
</PropertyGroup>
Expand All @@ -20,10 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.26.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="Cake.Core" Version="0.33.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
</ItemGroup>
</Project>
4 changes: 0 additions & 4 deletions src/Cake.Plist/packages.config

This file was deleted.

2 changes: 1 addition & 1 deletion tools/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.25.0" />
<package id="Cake" version="0.32.1" />
</packages>

0 comments on commit a1740e7

Please sign in to comment.