Update build dependencies

This commit is contained in:
Alex Barney 2019-05-30 20:20:01 -05:00
parent 61c66bc979
commit 5a4b56efad
4 changed files with 15 additions and 7 deletions

View file

@ -1,5 +1,6 @@
mode: ContinuousDeployment mode: ContinuousDeployment
increment: Patch increment: Patch
next-version: 0.4.0
branches: branches:
master: master:
tag: alpha tag: alpha

View file

@ -1 +1 @@
powershell -ExecutionPolicy Bypass -NoProfile -File .\build.ps1 -configuration Release powershell -ExecutionPolicy Bypass -NoProfile -File .\build.ps1 -configuration Release %*

View file

@ -11,6 +11,7 @@ using ILRepacking;
using Nuke.Common; using Nuke.Common;
using Nuke.Common.BuildServers; using Nuke.Common.BuildServers;
using Nuke.Common.Git; using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel; using Nuke.Common.ProjectModel;
using Nuke.Common.Tools.DotNet; using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion; using Nuke.Common.Tools.GitVersion;
@ -95,8 +96,14 @@ namespace LibHacBuild
Target Clean => _ => _ Target Clean => _ => _
.Executes(() => .Executes(() =>
{ {
DeleteDirectories(GlobDirectories(SourceDirectory, "**/bin", "**/obj")); List<string> toDelete = GlobDirectories(SourceDirectory, "**/bin", "**/obj")
DeleteDirectories(GlobDirectories(TestsDirectory, "**/bin", "**/obj")); .Concat(GlobDirectories(TestsDirectory, "**/bin", "**/obj")).ToList();
foreach (string dir in toDelete)
{
DeleteDirectory(dir);
}
EnsureCleanDirectory(ArtifactsDirectory); EnsureCleanDirectory(ArtifactsDirectory);
EnsureCleanDirectory(CliCoreDir); EnsureCleanDirectory(CliCoreDir);
EnsureCleanDirectory(CliFrameworkDir); EnsureCleanDirectory(CliFrameworkDir);
@ -262,7 +269,7 @@ namespace LibHacBuild
Target Publish => _ => _ Target Publish => _ => _
.DependsOn(Test) .DependsOn(Test)
.OnlyWhenStatic(() => Host == HostType.AppVeyor) .OnlyWhenStatic(() => Host == HostType.AppVeyor)
.OnlyWhenStatic(() => AppVeyor.Instance.PullRequestTitle == null) .OnlyWhenStatic(() => AppVeyor.Instance != null && AppVeyor.Instance.PullRequestTitle == null)
.Executes(() => .Executes(() =>
{ {
AbsolutePath nupkgFile = ArtifactsDirectory.GlobFiles("*.nupkg").Single(); AbsolutePath nupkgFile = ArtifactsDirectory.GlobFiles("*.nupkg").Single();

View file

@ -11,9 +11,9 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="GitVersion.CommandLine.DotNetCore" Version="4.0.0" /> <PackageReference Include="GitVersion.CommandLine.DotNetCore" Version="4.0.0" />
<PackageReference Include="ILRepack.Lib" Version="2.0.16" NoWarn="NU1701" /> <PackageReference Include="ILRepack.Lib" Version="2.0.17" NoWarn="NU1701" />
<PackageReference Include="NuGet.CommandLine" Version="4.9.3" /> <PackageReference Include="NuGet.CommandLine" Version="5.0.2" />
<PackageReference Include="Nuke.Common" Version="0.16.0" /> <PackageReference Include="Nuke.Common" Version="0.20.0" />
<PackageReference Include="SharpZipLib" Version="1.1.0" /> <PackageReference Include="SharpZipLib" Version="1.1.0" />
</ItemGroup> </ItemGroup>