Skip to content

Commit

Permalink
setup nuget package build
Browse files Browse the repository at this point in the history
  • Loading branch information
larzw committed Nov 4, 2016
1 parent 77dcb7e commit f862b73
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 30 deletions.
6 changes: 3 additions & 3 deletions Source/Cake.Paket.Addin/Cake.Paket.Addin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
<ItemGroup>
<AdditionalFiles Include="..\stylecop.json" />
</ItemGroup>
<ItemGroup>
<None Include="Cake.Paket.Addin.ruleset" />
</ItemGroup>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
<ItemGroup>
Expand All @@ -82,7 +85,4 @@
<Paket>True</Paket>
</Analyzer>
</ItemGroup>
<ItemGroup>
<None Include="Cake.Paket.Addin.ruleset" />
</ItemGroup>
</Project>
19 changes: 0 additions & 19 deletions Source/Cake.Paket.Module/Cake.Paket.Module.paket.template

This file was deleted.

6 changes: 2 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@ build_script:
- ps: .\build.ps1

artifacts:
- path: .\Reports\inspectCode.xml
name: inspectCode
- path: .\Reports\dupFinder.xml
name: dupFinder
- path: .\Reports
- path: .\NuGet
17 changes: 13 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ private readonly string cakePaketAddin = "./Source/Cake.Paket.Addin/bin/" + conf
private readonly string cakePaketModule = "./Source/Cake.Paket.Module/bin/" + configuration;
private readonly string cakePaketUnitTests = "./Source/Cake.Paket.UnitTests/bin/" + configuration + "/*.UnitTests.dll";

private readonly string reports = "./Reports";
private const string reports = "./Reports";
private readonly string coverage = reports + "/coverage.xml";
private readonly string resharperSettings = "./Source/Cake.Paket.sln.DotSettings";
private const string resharperSettings = "./Source/Cake.Paket.sln.DotSettings";
private readonly string inspectCode = reports + "/inspectCode.xml";
private readonly string dupFinder = reports + "/dupFinder.xml";

private const string nuGet = "./NuGet";

Setup(tool =>
{
Information(Figlet("Cake.Paket"));
Expand All @@ -20,7 +22,7 @@ Setup(tool =>

Task("Clean").Does(() =>
{
CleanDirectories(new[] {cakePaketAddin, cakePaketModule, reports});
CleanDirectories(new[] {cakePaketAddin, cakePaketModule, reports, nuGet});
});

Task("Build").IsDependentOn("Clean").Does(() =>
Expand Down Expand Up @@ -57,6 +59,13 @@ Task("Run-DupFinder").IsDependentOn("Build").Does(() =>
DupFinder(cakePaket, new DupFinderSettings { ShowStats = true, ShowText = true, OutputFile = dupFinder });
});

Task("Default").IsDependentOn("Run-Unit-Tests").IsDependentOn("Run-InspectCode").IsDependentOn("Run-DupFinder");
Task("Paket-Pack").IsDependentOn("Build").Does(() =>
{
EnsureDirectoryExists(nuGet);
Paket(new PaketSettings { Commands = "pack output NuGet version 1.1.0-alpha", ToolPath = new FilePath("./.paket/paket.exe") });
});

Task("Default").IsDependentOn("Run-Unit-Tests").IsDependentOn("Run-InspectCode").IsDependentOn("Run-DupFinder").IsDependentOn("Paket-Pack");

RunTarget("Default");
5 changes: 5 additions & 0 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ group Build/Tools/Addins
nuget Cake.Figlet
nuget Cake.Coveralls

group Build/Tools/Addins
framework: >= net45
source https://www.myget.org/F/mathphysics/api/v2
nuget Cake.Paket.Addin

group Build/Tools/Modules
framework: >= net45
source https://www.myget.org/F/mathphysics/api/v2
Expand Down
2 changes: 2 additions & 0 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ NUGET
Cake.Coveralls (0.2)
Cake.Figlet (0.3.1)
Cake.Core (>= 0.14)
remote: https://www.myget.org/F/mathphysics/api/v2
Cake.Paket.Addin (1.0.0-alpha3)

GROUP Build/Tools/Modules
FRAMEWORK: >= NET45
Expand Down

0 comments on commit f862b73

Please sign in to comment.