Skip to content

Commit

Permalink
Merge branch 'release/0.15.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Jan 16, 2019
2 parents ac4ac5c + 1df9389 commit b7cdef4
Show file tree
Hide file tree
Showing 127 changed files with 4,829 additions and 2,414 deletions.
79 changes: 48 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [vNext]

## [0.15.0] / 2019-01-16
- Changed `OnlyWhen` to `OnlyWhenStatic` and `OnlyWhenDynamic`
- Changed `graph` parameter to `plan`
- Added `DependentFor`, `Triggers` and `TriggeredBy` for target declarations
- Added `ToolSettings.CombineWith` for combinatorial invocations
- Added several `FileSystemTasks` methods
- Added `TemplateUtility.FillTemplateDirectory` and `FillTemplateFile`
- Added highlighting of execution plans in HTML representation
- Added process cancellation handler to always show summary
- Added `NuGetTasks` to add, remove, update, enable, disable and list sources
- Added `TravisOutputSink`
- Added path resolution for `VSTestTasks`
- Added caching of `MSBuild` path in `GetMSBuidProject`
- Fixed `GitRepository.IsOnDevelopBranch` to recognize `develop` and `development`
- Fixed shell-completion for PowerShell

## [0.14.1] / 2018-12-31
- Fixed package reference versions
- Fixed `SolutionSerializer` to handle empty lines
Expand Down Expand Up @@ -252,35 +268,36 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added CLT tasks for Git
- Fixed background color in console output

[vNext]: https://github.com/nuke-build/nuke/compare/0.14.1...HEAD
[0.14.1]: https://github.com/nuke-build/nuke/compare/0.14.0...0.14.1
[0.14.0]: https://github.com/nuke-build/nuke/compare/0.13.0...0.14.0
[0.13.0]: https://github.com/nuke-build/nuke/compare/0.12.4...0.13.0
[0.12.4]: https://github.com/nuke-build/nuke/compare/0.12.3...0.12.4
[0.12.3]: https://github.com/nuke-build/nuke/compare/0.12.2...0.12.3
[0.12.2]: https://github.com/nuke-build/nuke/compare/0.12.1...0.12.2
[0.12.1]: https://github.com/nuke-build/nuke/compare/0.12.0...0.12.1
[0.12.0]: https://github.com/nuke-build/nuke/compare/0.11.1...0.12.0
[0.11.1]: https://github.com/nuke-build/nuke/compare/0.11.0...0.11.1
[0.11.0]: https://github.com/nuke-build/nuke/compare/0.10.5...0.11.0
[0.10.5]: https://github.com/nuke-build/nuke/compare/0.10.4...0.10.5
[0.10.4]: https://github.com/nuke-build/nuke/compare/0.10.3...0.10.4
[0.10.3]: https://github.com/nuke-build/nuke/compare/0.10.2...0.10.3
[0.10.2]: https://github.com/nuke-build/nuke/compare/0.10.1...0.10.2
[0.10.1]: https://github.com/nuke-build/nuke/compare/0.10.0...0.10.1
[0.10.0]: https://github.com/nuke-build/nuke/compare/0.9.1...0.10.0
[0.9.1]: https://github.com/nuke-build/nuke/compare/0.9.0...0.9.1
[0.9.0]: https://github.com/nuke-build/nuke/compare/0.8.0...0.9.0
[0.8.0]: https://github.com/nuke-build/nuke/compare/0.7.0...0.8.0
[0.7.0]: https://github.com/nuke-build/nuke/compare/0.6.2...0.7.0
[0.6.2]: https://github.com/nuke-build/nuke/compare/0.6.1...0.6.2
[0.6.1]: https://github.com/nuke-build/nuke/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/nuke-build/nuke/compare/0.5.3...0.6.0
[0.5.3]: https://github.com/nuke-build/nuke/compare/0.5.2...0.5.3
[0.5.2]: https://github.com/nuke-build/nuke/compare/0.5.0...0.5.2
[0.5.0]: https://github.com/nuke-build/nuke/compare/0.4.0...0.5.0
[0.4.0]: https://github.com/nuke-build/nuke/compare/0.3.1...0.4.0
[0.3.1]: https://github.com/nuke-build/nuke/compare/0.2.10...0.3.1
[0.2.10]: https://github.com/nuke-build/nuke/compare/0.2.0...0.2.10
[0.2.0]: https://github.com/nuke-build/nuke/tree/0.2.0
[vNext]: https://github.com/nuke-build/common/compare/0.15.0...HEAD
[0.15.0]: https://github.com/nuke-build/common/compare/0.14.1...0.15.0
[0.14.1]: https://github.com/nuke-build/common/compare/0.14.0...0.14.1
[0.14.0]: https://github.com/nuke-build/common/compare/0.13.0...0.14.0
[0.13.0]: https://github.com/nuke-build/common/compare/0.12.4...0.13.0
[0.12.4]: https://github.com/nuke-build/common/compare/0.12.3...0.12.4
[0.12.3]: https://github.com/nuke-build/common/compare/0.12.2...0.12.3
[0.12.2]: https://github.com/nuke-build/common/compare/0.12.1...0.12.2
[0.12.1]: https://github.com/nuke-build/common/compare/0.12.0...0.12.1
[0.12.0]: https://github.com/nuke-build/common/compare/0.11.1...0.12.0
[0.11.1]: https://github.com/nuke-build/common/compare/0.11.0...0.11.1
[0.11.0]: https://github.com/nuke-build/common/compare/0.10.5...0.11.0
[0.10.5]: https://github.com/nuke-build/common/compare/0.10.4...0.10.5
[0.10.4]: https://github.com/nuke-build/common/compare/0.10.3...0.10.4
[0.10.3]: https://github.com/nuke-build/common/compare/0.10.2...0.10.3
[0.10.2]: https://github.com/nuke-build/common/compare/0.10.1...0.10.2
[0.10.1]: https://github.com/nuke-build/common/compare/0.10.0...0.10.1
[0.10.0]: https://github.com/nuke-build/common/compare/0.9.1...0.10.0
[0.9.1]: https://github.com/nuke-build/common/compare/0.9.0...0.9.1
[0.9.0]: https://github.com/nuke-build/common/compare/0.8.0...0.9.0
[0.8.0]: https://github.com/nuke-build/common/compare/0.7.0...0.8.0
[0.7.0]: https://github.com/nuke-build/common/compare/0.6.2...0.7.0
[0.6.2]: https://github.com/nuke-build/common/compare/0.6.1...0.6.2
[0.6.1]: https://github.com/nuke-build/common/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/nuke-build/common/compare/0.5.3...0.6.0
[0.5.3]: https://github.com/nuke-build/common/compare/0.5.2...0.5.3
[0.5.2]: https://github.com/nuke-build/common/compare/0.5.0...0.5.2
[0.5.0]: https://github.com/nuke-build/common/compare/0.4.0...0.5.0
[0.4.0]: https://github.com/nuke-build/common/compare/0.3.1...0.4.0
[0.3.1]: https://github.com/nuke-build/common/compare/0.2.10...0.3.1
[0.2.10]: https://github.com/nuke-build/common/compare/0.2.0...0.2.10
[0.2.0]: https://github.com/nuke-build/common/tree/0.2.0

52 changes: 6 additions & 46 deletions README.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions build/Build.GitFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
partial class Build
{
Target Changelog => _ => _
.OnlyWhen(() => GitRepository.Branch.NotNull().StartsWith("release") ||
GitRepository.Branch.StartsWith("hotfix"))
.OnlyWhenStatic(
() => GitRepository.Branch.NotNull().StartsWith("release") ||
GitRepository.Branch.StartsWith("hotfix"))
.Executes(() =>
{
FinalizeChangelog(ChangelogFile, GitVersion.MajorMinorPatch, GitRepository);
Expand Down
31 changes: 10 additions & 21 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Nuke.Common;
using Nuke.Common.Git;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Tools.InspectCode;
Expand Down Expand Up @@ -55,14 +56,14 @@ partial class Build : NukeBuild
readonly string HotfixBranchPrefix = "hotfix";

Target Clean => _ => _
.Before(Restore)
.Executes(() =>
{
DeleteDirectories(GlobDirectories(SourceDirectory, "*/bin", "*/obj"));
EnsureCleanDirectory(OutputDirectory);
});

Target Restore => _ => _
.DependsOn(Clean)
.Executes(() =>
{
DotNetRestore(s => s
Expand All @@ -75,7 +76,6 @@ partial class Build : NukeBuild

Target Compile => _ => _
.DependsOn(Restore)
.Requires(() => IsUnix || GitVersion != null)
.Executes(() =>
{
DotNetBuild(s => s
Expand All @@ -86,29 +86,18 @@ partial class Build : NukeBuild
.SetFileVersion(GitVersion.GetNormalizedFileVersion())
.SetInformationalVersion(GitVersion.InformationalVersion));

var publishSettings = new DotNetPublishSettings()
DotNetPublish(s => s
.EnableNoRestore()
.SetConfiguration(Configuration)
.SetAssemblyVersion(GitVersion.GetNormalizedAssemblyVersion())
.SetFileVersion(GitVersion.GetNormalizedFileVersion())
.SetInformationalVersion(GitVersion.InformationalVersion);

DotNetPublish(s => publishSettings
.SetProject(GlobalToolProject));

DotNetPublish(s => publishSettings
.SetProject(CommonProject)
.SetFramework("netstandard2.0"));
DotNetPublish(s => publishSettings
.SetProject(CommonProject)
.SetFramework("net461"));

DotNetPublish(s => publishSettings
.SetProject(CodeGenerationProject)
.SetFramework("netstandard2.0"));
DotNetPublish(s => publishSettings
.SetProject(CodeGenerationProject)
.SetFramework("net461"));
.SetInformationalVersion(GitVersion.InformationalVersion)
.CombineWith(
from project in new[] { GlobalToolProject, CommonProject, CodeGenerationProject }
from framework in project.GetMSBuildProject().GetTargetFrameworks()
select new { project, framework }, (cs, v) => cs
.SetProject(v.project)
.SetFramework(v.framework)));
});

string ChangelogFile => RootDirectory / "CHANGELOG.md";
Expand Down
6 changes: 0 additions & 6 deletions build/specifications/DotCover.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
{
"name": "Configuration",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}"
},
{
Expand Down Expand Up @@ -55,7 +54,6 @@
{
"name": "Configuration",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}"
},
{
Expand All @@ -75,7 +73,6 @@
{
"name": "Configuration",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}"
},
{
Expand All @@ -96,7 +93,6 @@
{
"name": "Configuration",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}"
},
{
Expand Down Expand Up @@ -129,7 +125,6 @@
{
"name": "Configuration",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}"
},
{
Expand Down Expand Up @@ -168,7 +163,6 @@
{
"name": "Configuration",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}"
},
{
Expand Down
1 change: 0 additions & 1 deletion build/specifications/DotNet.json
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@
{
"name": "TargetPath",
"type": "string",
"assertion": "File",
"format": "{value}",
"help": "Path of the package to push."
},
Expand Down
2 changes: 0 additions & 2 deletions build/specifications/InspectCode.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
{
"name": "TargetPath",
"type": "string",
"assertion": "File",
"format": "{value}",
"createOverload": true,
"help": "Target path."
},
{
"name": "Output",
"type": "string",
"assertion": "NotNull",
"format": "--output={value}",
"createOverload": true,
"help": "Lets you set the output file. By default, the output file is saved in the <em>%TEMP%</em> directory."
Expand Down
1 change: 0 additions & 1 deletion build/specifications/MSBuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
{
"name": "TargetPath",
"type": "string",
"assertion": "FileOrNull",
"format": "{value}",
"createOverload": true,
"help": "The solution or project file on which MSBuild is executed."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"references": [
"https://github.com/nunit/docs/wiki/Console-Command-Line#//div[@id='wiki-body']"
],
"name": "Nunit",
"name": "NUnit",
"officialUrl": "https://www.nunit.org/",
"help": "NUnit is a unit-testing framework for all .Net languages. Initially ported from <a href=\"http://www.junit.org/\">JUnit</a>, the current production release, version 3.0, has been completely rewritten with many new features and support for a wide range of .NET platforms.",
"packageId": "NUnit.ConsoleRunner",
Expand Down Expand Up @@ -54,7 +54,7 @@
},
{
"name": "Process",
"type": "NunitProcessType",
"type": "NUnitProcessType",
"format": "--process={value}",
"help": "Process isolation for test assemblies. Values: Single, Separate, Multiple. If not specified, defaults to Separate for a single assembly or Multiple for more than one. By default, processes are run in parallel."
},
Expand Down Expand Up @@ -186,13 +186,13 @@
},
{
"name": "Labels",
"type": "NunitLabelType",
"type": "NUnitLabelType",
"format": "--labels={value}",
"help": "Specify whether to write test case names to the output. Values: Off, On, All"
},
{
"name": "Trace",
"type": "NunitTraceLevel",
"type": "NUnitTraceLevel",
"format": "--trace={value}",
"help": "Set internal trace LEVEL. Values: Off, Error, Warning, Info, Verbose (Debug)"
},
Expand Down Expand Up @@ -228,7 +228,7 @@
},
{
"name": "SetPrincipalPolicy",
"type": "NunitPrincipalPolicy",
"type": "NUnitPrincipalPolicy",
"format": "--set-principal-policy={value}",
"help": "Set the principal policy for the test domain to POLICY. Values: UnauthenticatedPrincipal, NoPrincipal, WindowsPrincipal"
},
Expand All @@ -250,31 +250,31 @@
],
"enumerations": [
{
"name": "NunitProcessType",
"name": "NUnitProcessType",
"values": [
"Single",
"Separate",
"Multiple"
]
},
{
"name": "NunitPrincipalPolicy",
"name": "NUnitPrincipalPolicy",
"values": [
"UnauthenticatedPrincipal",
"NoPrincipal",
"WindowsPrincipal"
]
},
{
"name": "NunitLabelType",
"name": "NUnitLabelType",
"values": [
"Off",
"On",
"All"
]
},
{
"name": "NunitTraceLevel",
"name": "NUnitTraceLevel",
"values": [
"Off",
"Error",
Expand Down
Loading

0 comments on commit b7cdef4

Please sign in to comment.