Skip to content

Commit

Permalink
Prepare for release 0.1.0 (#16)
Browse files Browse the repository at this point in the history
* remove "Unreleased" from changelog.md
* remove git tag version checks
* don't skip version checks for "Unreleased" anymore
* mention documentation in changelog.md
* add release date to changelog.md
  • Loading branch information
alx9r authored Nov 26, 2016
1 parent 29aa370 commit b611430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
## Unreleased

## 0.1.0
## 0.1.0 (2016-11-26)
- created invokers for class- and MOF-based resources
- interprets minimal configuration document format
- implemented binding of configurations to resources including basic error checking
- completed the core of an extensible multi-pass configuration algorithm
- implemented `IEnumerable<ConfigStep>` for the instructions objects so that configuration steps can be invoked and interacted with using idiomatic PowerShell
- published "Getting Started" documentation

This changelog is inspired by the
[Pester](https://github.com/pester/Pester/blob/master/CHANGELOG.md) file
Expand Down
26 changes: 2 additions & 24 deletions ZeroDsc.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,8 @@ Describe "manifest and changelog" {
$script:changelogVersion -as [Version] | Should Not BeNullOrEmpty
}

if ( (Get-Content $changeLogPath)[0] -ne '## Unreleased' )
{
It "then changelog and manifest versions are the same" {
$script:changelogVersion -as [Version] | Should be ( $script:manifest.Version -as [Version] )
}

if (Get-Command git.exe -ErrorAction SilentlyContinue) {
$script:tagVersion = $null
It "is tagged with a valid version" {
$thisCommit = git.exe log --decorate --oneline HEAD~1..HEAD

$mask = 'tag:\s*(?<version>[0-9]*\.[0-9]*\.[0-9]*)'
$script:tagVersion = [regex]::Match($thisCommit,$mask).Groups['version'].Value

$script:tagVersion | Should Not BeNullOrEmpty
$script:tagVersion -as [Version] | Should Not BeNullOrEmpty
}

It "all versions are the same" {
$script:changelogVersion -as [Version] | Should be ( $script:manifest.Version -as [Version] )
$script:manifest.Version -as [Version] | Should be ( $script:tagVersion -as [Version] )
}

}
It "changelog and manifest versions are the same" {
$script:changelogVersion -as [Version] | Should be ( $script:manifest.Version -as [Version] )
}
}

Expand Down

0 comments on commit b611430

Please sign in to comment.