Skip to content

Commit

Permalink
MyGet support files/changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrcounts committed Nov 27, 2013
1 parent 07c55b3 commit 2639ff0
Show file tree
Hide file tree
Showing 22 changed files with 3,582 additions and 19 deletions.
1 change: 1 addition & 0 deletions ApprovalTests.Tests/ApprovalTests.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
</ItemGroup>
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
Expand Down
3 changes: 3 additions & 0 deletions ApprovalTests.Xunit/ApprovalTests.Xunit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
11 changes: 7 additions & 4 deletions ApprovalTests.sln
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CC679657-AF36-470E-9976-BB00E6792F32}"
ProjectSection(SolutionItems) = preProject
ApprovalTests.build = ApprovalTests.build
ApprovalTests.vsmdi = ApprovalTests.vsmdi
ApprovalTests3.vsmdi = ApprovalTests3.vsmdi
LocalTestRun.testrunconfig = LocalTestRun.testrunconfig
MyGet.cmd = MyGet.cmd
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApprovalTests", "ApprovalTests\ApprovalTests.csproj", "{F70C9A76-F797-4167-8178-14821F8634BC}"
Expand Down Expand Up @@ -40,9 +43,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApprovalTests.Xunit", "ApprovalTests.Xunit\ApprovalTests.Xunit.csproj", "{B8AAA028-1890-40B6-84B8-2F46986EEE8C}"
EndProject
Global
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = ApprovalTests3.vsmdi
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Expand Down Expand Up @@ -100,4 +100,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = ApprovalTests3.vsmdi
EndGlobalSection
EndGlobal
8 changes: 5 additions & 3 deletions ApprovalTests/ApprovalTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(SolutionDir)ApprovalsKeyPair.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>ApprovalsKeyPair.snk</AssemblyOriginatorKeyFile>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
Expand Down Expand Up @@ -70,11 +70,11 @@
</Reference>
<Reference Include="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Common\Microsoft.ReportViewer.Common.dll</HintPath>
<HintPath>..\lib\ReportViewer\Microsoft.ReportViewer.Common.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Common\Microsoft.ReportViewer.WinForms.dll</HintPath>
<HintPath>..\lib\ReportViewer\Microsoft.ReportViewer.WinForms.dll</HintPath>
</Reference>
<Reference Include="NHibernate">
<HintPath>..\packages\NHibernate.3.3.2.4000\lib\Net35\NHibernate.dll</HintPath>
Expand Down Expand Up @@ -155,6 +155,7 @@
<Compile Include="Reporters\CruiseControlNetReporter.cs" />
<Compile Include="Reporters\AllFailingTestsClipboardReporter.cs" />
<Compile Include="Reporters\MightyMooseAutoTestReporter.cs" />
<Compile Include="Reporters\MyGetReporter.cs" />
<Compile Include="Reporters\P4MergeReporter.cs" />
<Compile Include="Reporters\P4MergeImageReporter.cs" />
<Compile Include="Reporters\DefaultFrontLoaderReporter.cs" />
Expand Down Expand Up @@ -218,6 +219,7 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="ApprovalsKeyPair.snk" />
<None Include="Fody.targets" />
<None Include="packages.config" />
</ItemGroup>
Expand Down
Binary file added ApprovalTests/ApprovalsKeyPair.snk
Binary file not shown.
22 changes: 13 additions & 9 deletions ApprovalTests/Reporters/DefaultFrontLoaderReporter.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
namespace ApprovalTests.Reporters
{
public class DefaultFrontLoaderReporter : FirstWorkingReporter
{
public static readonly DefaultFrontLoaderReporter INSTANCE = new DefaultFrontLoaderReporter();
public class DefaultFrontLoaderReporter : FirstWorkingReporter
{
public static readonly DefaultFrontLoaderReporter INSTANCE = new DefaultFrontLoaderReporter();

public DefaultFrontLoaderReporter():base(TeamCityReporter.INSTANCE, CruiseControlNetReporter.INSTANCE, NCrunchReporter.INSTANCE, MightyMooseAutoTestReporter.INSTANCE)
{

}

}
public DefaultFrontLoaderReporter()
: base(
TeamCityReporter.INSTANCE,
CruiseControlNetReporter.INSTANCE,
NCrunchReporter.INSTANCE,
MightyMooseAutoTestReporter.INSTANCE,
MyGetReporter.INSTANCE)
{
}
}
}
20 changes: 20 additions & 0 deletions ApprovalTests/Reporters/MyGetReporter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using ApprovalTests.Core;

namespace ApprovalTests.Reporters
{
public class MyGetReporter : IEnvironmentAwareReporter
{
public static readonly MyGetReporter INSTANCE = new MyGetReporter();

public void Report(string approved, string received)
{
// does nothing
}

public bool IsWorkingInThisEnvironment(string forFile)
{
return "MyGet".Equals(Environment.GetEnvironmentVariable("BuildRunner"));
}
}
}
3 changes: 2 additions & 1 deletion ApprovalUtilities/ApprovalUtilities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>$(SolutionDir)ApprovalsKeyPair.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>ApprovalsKeyPair.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Iesi.Collections">
Expand Down Expand Up @@ -117,6 +117,7 @@
<Compile Include="Xml\XmlUtils.cs" />
</ItemGroup>
<ItemGroup>
<None Include="ApprovalsKeyPair.snk" />
<None Include="Fody.targets" />
<None Include="packages.config" />
</ItemGroup>
Expand Down
Binary file added ApprovalUtilities/ApprovalsKeyPair.snk
Binary file not shown.
1 change: 1 addition & 0 deletions MvcApplication.Razor/MvcApplication.Razor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<MvcProjectUpgradeChecked>true</MvcProjectUpgradeChecked>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 2 additions & 0 deletions MyGet.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.nuget\NuGet.exe pack ApprovalUtilities\ApprovalUtilities.csproj -OutputDirectory .\ApprovalUtilities -Symbols -Build -Properties Configuration=Debug -Version %PackageVersion%
.nuget\NuGet.exe pack ApprovalTests\ApprovalTests.csproj -OutputDirectory .\ApprovalTests -Symbols -Build -Properties Configuration=Debug -Version %PackageVersion%
2 changes: 0 additions & 2 deletions build/build.bat

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 2639ff0

Please sign in to comment.