diff --git a/appveyor.yml b/appveyor.yml index 46e6d3f..b430c62 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/build.cake b/build.cake index c1bf9d2..f9882a2 100644 --- a/build.cake +++ b/build.cake @@ -44,6 +44,11 @@ Task("Versioning") .WithCriteria(() => !IsRunningOnUnix()) .Does(() => { + GitVersion(new GitVersionSettings + { + OutputType = GitVersionOutput.BuildServer + }); + var result = GitVersion(new GitVersionSettings { UpdateAssemblyInfo = true @@ -53,8 +58,8 @@ Task("Versioning") }); Task("Build") - .IsDependentOn("Restore") .IsDependentOn("Versioning") + .IsDependentOn("Restore") .Does(() => { CreateDirectory(artifacts);