Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
Remove dependency on NUnit, since there are no tests in the project
  • Loading branch information
thomaslevesque committed Apr 5, 2016
1 parent 69acde0 commit 8203360
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions build.cake
@@ -1,5 +1,3 @@
#tool "NUnit.Console"

using System.Xml.Linq;

////////////////////
Expand Down Expand Up @@ -27,9 +25,6 @@ var projects = new[]
};
var projectDirsToClean = new[] { "bin", "obj", "AppPackages" };

// Assemblies containing unit tests
var unitTestAssemblies = new string[] { };

// NuGet package ID; change if different from project name
var nugetId = projectName;
// Path to the nuspec file
Expand Down Expand Up @@ -133,18 +128,9 @@ Task("Build")
}
});

// Runs the unit tests
Task("Test")
.WithCriteria(unitTestAssemblies.Any())
.IsDependentOn("Build")
.Does(() =>
{
NUnit(unitTestAssemblies);
});

// Creates the NuGet package
Task("Pack")
.IsDependentOn("Test")
.IsDependentOn("Build")
.Does(() =>
{
CreateDirectory(nupkgDir);
Expand Down Expand Up @@ -183,7 +169,7 @@ Task("Push")
/////////////

Task("Default")
.IsDependentOn("Test");
.IsDependentOn("Build");

///////////////
// Execution //
Expand Down

0 comments on commit 8203360

Please sign in to comment.