Skip to content

Commit

Permalink
Add packaging to script
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Sep 21, 2016
1 parent a7a2aa8 commit ecfe2ae
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
26 changes: 25 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,29 @@ Task("Test")
}
});

//////////////////////////////////////////////////////////////////////
// PACKAGE
//////////////////////////////////////////////////////////////////////

Task("CreatePackageDir")
.Does(() =>
{
CreateDirectory(PACKAGE_DIR);
});

Task("Package")
.IsDependentOn("Build")
.Does(() =>
{
CreateDirectory(PACKAGE_IMAGE_DIR);
CleanDirectory(PACKAGE_IMAGE_DIR);

CopyFileToDirectory("LICENSE.txt", PACKAGE_IMAGE_DIR);
CopyFileToDirectory(BIN_DIR + "nunit-summary.exe", PACKAGE_IMAGE_DIR);

Zip(PACKAGE_IMAGE_DIR, File(PACKAGE_DIR + packageName + ".zip"));
});

//////////////////////////////////////////////////////////////////////
// TASK TARGETS
//////////////////////////////////////////////////////////////////////
Expand All @@ -141,7 +164,8 @@ Task("Rebuild")

Task("Appveyor")
.IsDependentOn("Build")
.IsDependentOn("Test");
.IsDependentOn("Test")
.IsDependentOn("Package");

Task("Travis")
.IsDependentOn("Build")
Expand Down
14 changes: 0 additions & 14 deletions src/test-nunit-summary.exe/MultipleInputSingleOutputTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,6 @@ protected override string Options
[TestCaseSource("ExpectedText")]
public void CheckReportContent(int lineno, string text)
{
//int count = 0;
//int index = 0;
//for (;;)
//{
// index = Report.IndexOf(text, index);
// if (index < 0) break;

// count++;

// index += text.Length;
// if (index >= Report.Length) break;
//}

//Assert.That(count, Is.EqualTo(expectedCount), "Error finding text \"" + text + "\"");
Assert.That(ReportLines[lineno], Contains.Substring(text));
}
}
Expand Down

0 comments on commit ecfe2ae

Please sign in to comment.