Skip to content

Commit

Permalink
Fix gitversion integration (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcoltheart committed Jun 8, 2016
1 parent 957f026 commit de25477
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Set dummy version, as it will be replaced by GitVersion
version: x-{build}

build_script:
- ps: .\build.ps1

test: off

artifacts:
- path: artifacts\*.nupkg

notifications:
- provider: Email
on_build_success: false
Expand Down
7 changes: 6 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ Task("Versioning")
.WithCriteria(() => !IsRunningOnUnix())
.Does(() =>
{
GitVersion(new GitVersionSettings
{
OutputType = GitVersionOutput.BuildServer
});
var result = GitVersion(new GitVersionSettings
{
UpdateAssemblyInfo = true
Expand All @@ -53,8 +58,8 @@ Task("Versioning")
});

Task("Build")
.IsDependentOn("Restore")
.IsDependentOn("Versioning")
.IsDependentOn("Restore")
.Does(() =>
{
CreateDirectory(artifacts);
Expand Down

0 comments on commit de25477

Please sign in to comment.