Skip to content

Commit

Permalink
Fix ICompile, IPack, ITest component to check against SucceededTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Apr 22, 2021
1 parent da8fea7 commit 7a28ce3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/Nuke.Components/ICompile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface ICompile : IRestore, IHazConfiguration
.SetConfiguration(Configuration)
.When(IsServerBuild, _ => _
.EnableContinuousIntegrationBuild())
// .SetNoRestore(InvokedTargets.Contains(Restore))
.SetNoRestore(SucceededTargets.Contains(Restore))
.WhenNotNull(this as IHazGitRepository, (_, o) => _
.SetRepositoryUrl(o.GitRepository.HttpsUrl))
.WhenNotNull(this as IHazGitVersion, (_, o) => _
Expand Down
2 changes: 1 addition & 1 deletion source/Nuke.Components/IPack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface IPack : ICompile, IHazArtifacts
sealed Configure<DotNetPackSettings> PackSettingsBase => _ => _
.SetProject(Solution)
.SetConfiguration(Configuration)
.SetNoBuild(InvokedTargets.Contains(Compile))
.SetNoBuild(SucceededTargets.Contains(Compile))
.SetOutputDirectory(PackagesDirectory)
.WhenNotNull(this as IHazGitVersion, (_, o) => _
.SetVersion(o.Versioning.NuGetVersionV2))
Expand Down
2 changes: 1 addition & 1 deletion source/Nuke.Components/ITest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ IEnumerable<string> GetOutcomes(AbsolutePath file)

sealed Configure<DotNetTestSettings> TestSettingsBase => _ => _
.SetConfiguration(Configuration)
.SetNoBuild(InvokedTargets.Contains(Compile))
.SetNoBuild(SucceededTargets.Contains(Compile))
.ResetVerbosity()
.SetResultsDirectory(TestResultDirectory)
.When(InvokedTargets.Contains((this as IReportCoverage)?.ReportCoverage) || IsServerBuild, _ => _
Expand Down

0 comments on commit 7a28ce3

Please sign in to comment.