Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Changed build.cake for CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jchannon committed Jul 17, 2016
1 parent 85f9d4a commit 43c1350
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.cake
Expand Up @@ -7,7 +7,7 @@ using System.Xml.XPath;
var target = Argument<string>("target", "Default");
var source = Argument<string>("source", null);
var apiKey = Argument<string>("apikey", null);
var version = Argument<string>("targetversion", null);
var version = Argument<string>("targetversion", EnvironmentVariable("APPVEYOR_BUILD_VERSION"));
var skipClean = Argument<bool>("skipclean", false);
var skipTests = Argument<bool>("skiptests", false);
var nogit = Argument<bool>("nogit", false);
Expand Down Expand Up @@ -303,6 +303,10 @@ Task("Update-Version")

public void UpdateProjectJsonVersion(string version, FilePathCollection filePaths)
{
if (version == null)
{
version = "0.0.0";
}
Verbose(logAction => logAction("Setting version to {0}", version));
foreach (var file in filePaths)
{
Expand All @@ -317,11 +321,12 @@ public void UpdateProjectJsonVersion(string version, FilePathCollection filePath

Task("Default")
.IsDependentOn("Test")
.IsDependentOn("Package");
.IsDependentOn("Update-Version")
.IsDependentOn("Package-NuGet");

Task("Mono")
.IsDependentOn("Test");

///////////////////////////////////////////////////////////////

RunTarget(target);
RunTarget(target);

0 comments on commit 43c1350

Please sign in to comment.