2015-11-23 08:00:18 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// ARGUMENTS
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
var target = Argument("target", "Default");
|
|
|
|
var configuration = Argument("configuration", "Debug");
|
|
|
|
var framework = Argument("framework", "net-4.5");
|
2016-02-10 18:12:25 +03:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// SET ERROR LEVELS
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
var ErrorState = false;
|
2016-02-10 19:04:01 +03:00
|
|
|
var ErrorDetail = new List<string>();
|
2015-12-11 22:58:14 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// SET PACKAGE VERSION
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2016-02-10 18:12:25 +03:00
|
|
|
|
2015-12-23 07:01:41 +03:00
|
|
|
var version = "3.1.0";
|
|
|
|
var modifier = "";
|
2015-12-11 22:58:14 +03:00
|
|
|
var displayVersion = "3.1";
|
|
|
|
|
2015-12-23 07:01:41 +03:00
|
|
|
var isAppveyor = BuildSystem.IsRunningOnAppVeyor;
|
|
|
|
var dbgSuffix = configuration == "Debug" ? "-dbg" : "";
|
|
|
|
var packageVersion = version + modifier + dbgSuffix;
|
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// SUPPORTED FRAMEWORKS
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
var WindowsFrameworks = new string[] {
|
2015-12-25 21:05:53 +03:00
|
|
|
"net-4.5", "net-4.0", "net-2.0", "portable", "sl-5.0", "netcf-3.5" };
|
2015-12-11 22:58:14 +03:00
|
|
|
|
|
|
|
var LinuxFrameworks = new string[] {
|
|
|
|
"net-4.5", "net-4.0", "net-2.0" };
|
2015-11-23 08:00:18 +03:00
|
|
|
|
2015-12-12 05:02:51 +03:00
|
|
|
var AllFrameworks = IsRunningOnWindows() ? WindowsFrameworks : LinuxFrameworks;
|
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
2015-12-11 22:58:14 +03:00
|
|
|
// DEFINE RUN CONSTANTS
|
2015-11-23 08:00:18 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-12-25 06:19:54 +03:00
|
|
|
var PROJECT_DIR = Context.Environment.WorkingDirectory.FullPath + "/";
|
|
|
|
var PACKAGE_DIR = PROJECT_DIR + "package/";
|
|
|
|
var BIN_DIR = PROJECT_DIR + "bin/" + configuration + "/";
|
|
|
|
var IMAGE_DIR = PROJECT_DIR + "images/";
|
2015-11-23 08:00:18 +03:00
|
|
|
|
|
|
|
// Test Runners
|
2015-12-11 22:58:14 +03:00
|
|
|
var NUNIT3_CONSOLE = BIN_DIR + "nunit3-console.exe";
|
2015-12-22 08:18:05 +03:00
|
|
|
var NUNITLITE_RUNNER = "nunitlite-runner.exe";
|
2015-11-23 08:00:18 +03:00
|
|
|
|
|
|
|
// Test Assemblies
|
|
|
|
var FRAMEWORK_TESTS = "nunit.framework.tests.dll";
|
|
|
|
var NUNITLITE_TESTS = "nunitlite.tests.exe";
|
|
|
|
var ENGINE_TESTS = "nunit.engine.tests.dll";
|
2016-02-05 02:13:29 +03:00
|
|
|
var PORTABLE_AGENT_TESTS = "agents/nunit.portable.agent.tests.dll";
|
2015-11-23 08:00:18 +03:00
|
|
|
var ADDIN_TESTS = "addins/tests/addin-tests.dll";
|
2016-02-05 02:13:29 +03:00
|
|
|
var V2_PORTABLE_AGENT_TESTS = "addins/v2-tests/nunit.v2.driver.tests.dll";
|
2015-11-23 08:00:18 +03:00
|
|
|
var CONSOLE_TESTS = "nunit3-console.tests.dll";
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
// Packages
|
2015-12-23 07:01:41 +03:00
|
|
|
var SRC_PACKAGE = PACKAGE_DIR + "NUnit-" + version + modifier + "-src.zip";
|
|
|
|
var ZIP_PACKAGE = PACKAGE_DIR + "NUnit-" + packageVersion + ".zip";
|
2015-12-25 07:15:36 +03:00
|
|
|
var ZIP_PACKAGE_SL = PACKAGE_DIR + "NUnitSL-" + packageVersion + ".zip";
|
2015-12-25 21:05:53 +03:00
|
|
|
var ZIP_PACKAGE_CF = PACKAGE_DIR + "NUnitCF-" + packageVersion + ".zip";
|
2015-11-23 08:00:18 +03:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2015-12-11 22:58:14 +03:00
|
|
|
// CLEAN
|
2015-11-23 08:00:18 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
Task("Clean")
|
|
|
|
.Does(() =>
|
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
CleanDirectory(BIN_DIR);
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
2015-12-23 07:01:41 +03:00
|
|
|
// INITIALIZE FOR BUILD
|
2015-12-11 22:58:14 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-12-23 07:01:41 +03:00
|
|
|
Task("InitializeBuild")
|
2015-11-23 08:00:18 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
if (IsRunningOnWindows())
|
|
|
|
NuGetRestore("./nunit.sln");
|
|
|
|
else
|
|
|
|
NuGetRestore("./nunit.linux.sln");
|
2015-12-23 07:01:41 +03:00
|
|
|
|
|
|
|
if (BuildSystem.IsRunningOnAppVeyor)
|
|
|
|
{
|
|
|
|
var tag = AppVeyor.Environment.Repository.Tag;
|
2016-02-02 05:05:59 +03:00
|
|
|
|
|
|
|
if (tag.IsTag)
|
|
|
|
{
|
|
|
|
packageVersion = tag.Name;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
var buildNumber = AppVeyor.Environment.Build.Number;
|
|
|
|
packageVersion = version + "-CI-" + buildNumber + dbgSuffix;
|
|
|
|
if (AppVeyor.Environment.PullRequest.IsPullRequest)
|
|
|
|
packageVersion += "-PR-" + AppVeyor.Environment.PullRequest.Number;
|
|
|
|
else
|
|
|
|
packageVersion += "-" + AppVeyor.Environment.Repository.Branch;
|
|
|
|
}
|
2015-12-23 09:38:24 +03:00
|
|
|
|
2015-12-23 07:01:41 +03:00
|
|
|
AppVeyor.UpdateBuildVersion(packageVersion);
|
|
|
|
}
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// BUILD
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
Task("BuildAllFrameworks")
|
2015-12-23 07:01:41 +03:00
|
|
|
.IsDependentOn("InitializeBuild")
|
2015-11-23 08:00:18 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
foreach (var runtime in AllFrameworks)
|
2015-12-25 21:05:53 +03:00
|
|
|
if (runtime != "netcf-3.5")
|
|
|
|
BuildFramework(configuration, runtime);
|
2015-12-11 22:58:14 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Task("BuildFramework")
|
2015-12-23 07:01:41 +03:00
|
|
|
.IsDependentOn("InitializeBuild")
|
2015-12-11 22:58:14 +03:00
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
BuildFramework(configuration, framework);
|
|
|
|
});
|
|
|
|
|
|
|
|
Task("BuildEngine")
|
2015-12-23 07:01:41 +03:00
|
|
|
.IsDependentOn("InitializeBuild")
|
2015-12-11 22:58:14 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
BuildEngine(configuration);
|
|
|
|
});
|
|
|
|
|
|
|
|
Task("BuildConsole")
|
2015-12-23 07:01:41 +03:00
|
|
|
.IsDependentOn("InitializeBuild")
|
2015-12-11 22:58:14 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
BuildConsole(configuration);
|
|
|
|
});
|
2015-12-25 21:05:53 +03:00
|
|
|
|
|
|
|
Task("BuildCppTestFiles")
|
|
|
|
.IsDependentOn("InitializeBuild")
|
|
|
|
.WithCriteria(IsRunningOnWindows)
|
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
MSBuild("./src/NUnitEngine/mock-cpp-clr/mock-cpp-clr-x86.vcxproj", new MSBuildSettings()
|
|
|
|
.SetConfiguration(configuration)
|
|
|
|
.WithProperty("Platform", "x86")
|
|
|
|
.SetVerbosity(Verbosity.Minimal)
|
|
|
|
.SetNodeReuse(false)
|
|
|
|
);
|
|
|
|
MSBuild("./src/NUnitEngine/mock-cpp-clr/mock-cpp-clr-x64.vcxproj", new MSBuildSettings()
|
|
|
|
.SetConfiguration(configuration)
|
|
|
|
.WithProperty("Platform", "x64")
|
|
|
|
.SetVerbosity(Verbosity.Minimal)
|
|
|
|
.SetNodeReuse(false)
|
|
|
|
);
|
|
|
|
});
|
2015-12-11 22:58:14 +03:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// TEST
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2016-02-13 06:32:02 +03:00
|
|
|
|
|
|
|
Task("CheckForError")
|
2016-02-13 11:30:44 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
ErrorDetail=CheckForError(ErrorDetail);
|
|
|
|
});
|
2016-02-13 06:32:02 +03:00
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
Task("TestAllFrameworks")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Build")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-11-23 08:00:18 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
foreach(string runtime in AllFrameworks)
|
|
|
|
{
|
2015-12-25 21:05:53 +03:00
|
|
|
if (runtime != "netcf-3.5")
|
|
|
|
{
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(BIN_DIR + File(runtime + "/" + NUNITLITE_RUNNER), BIN_DIR + "/" + runtime, FRAMEWORK_TESTS, runtime);
|
2015-12-22 08:18:05 +03:00
|
|
|
|
2015-12-25 21:05:53 +03:00
|
|
|
if (runtime == "sl-5.0")
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(BIN_DIR + File(runtime + "/" + NUNITLITE_RUNNER), BIN_DIR + "/" + runtime, "nunitlite.tests.dll", runtime);
|
2015-12-25 21:05:53 +03:00
|
|
|
else
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(BIN_DIR + File(runtime + "/" + NUNITLITE_TESTS), BIN_DIR, runtime);
|
2015-12-25 21:05:53 +03:00
|
|
|
}
|
2015-11-23 08:00:18 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
Task("TestFramework")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Build")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-11-23 08:00:18 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(BIN_DIR + File(framework + "/" + NUNITLITE_RUNNER), BIN_DIR + "/" + framework, FRAMEWORK_TESTS, framework);
|
2015-12-22 08:18:05 +03:00
|
|
|
});
|
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
Task("TestNUnitLite")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("BuildFramework")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-11-23 08:00:18 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
2015-12-22 08:18:05 +03:00
|
|
|
if (framework == "sl-5.0")
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(BIN_DIR + File(framework + "/" + NUNITLITE_RUNNER), BIN_DIR + "/" + framework, "nunitlite.tests.dll", framework);
|
2015-12-22 08:18:05 +03:00
|
|
|
else
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(BIN_DIR + File(framework + "/" + NUNITLITE_TESTS), BIN_DIR, framework);
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Task("TestEngine")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Build")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-12-11 22:58:14 +03:00
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(NUNIT3_CONSOLE, BIN_DIR, ENGINE_TESTS, "TestEngine");
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
2016-01-05 22:23:14 +03:00
|
|
|
Task("TestDriver")
|
|
|
|
.IsDependentOn("Build")
|
|
|
|
.WithCriteria(IsRunningOnWindows)
|
|
|
|
.Does(() =>
|
|
|
|
{
|
2016-02-05 02:13:29 +03:00
|
|
|
RunTest(NUNIT3_CONSOLE, BIN_DIR, PORTABLE_AGENT_TESTS);
|
2016-01-05 22:23:14 +03:00
|
|
|
});
|
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
Task("TestAddins")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Build")
|
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(NUNIT3_CONSOLE, BIN_DIR, ADDIN_TESTS,"TestAddins");
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Task("TestV2Driver")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Build")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-12-11 22:58:14 +03:00
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2016-02-13 11:16:31 +03:00
|
|
|
RunTest(NUNIT3_CONSOLE, BIN_DIR, V2_PORTABLE_AGENT_TESTS,"TestV2Driver");
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Task("TestConsole")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Build")
|
2016-02-10 18:12:25 +03:00
|
|
|
.OnError(exception =>
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
|
|
|
ErrorDetail.Add(exception.Message);
|
|
|
|
})
|
2015-12-11 22:58:14 +03:00
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2016-02-13 07:04:57 +03:00
|
|
|
RunTest(NUNIT3_CONSOLE, BIN_DIR, CONSOLE_TESTS, "TestConsole");
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2015-12-11 22:58:14 +03:00
|
|
|
// PACKAGE
|
2015-11-23 08:00:18 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
var RootFiles = new FilePath[]
|
|
|
|
{
|
|
|
|
"LICENSE.txt",
|
|
|
|
"NOTICES.txt",
|
|
|
|
"CHANGES.txt",
|
|
|
|
"nunit.ico"
|
|
|
|
};
|
|
|
|
|
|
|
|
var BinFiles = new FilePath[]
|
|
|
|
{
|
|
|
|
"ConsoleTests.nunit",
|
|
|
|
"EngineTests.nunit",
|
|
|
|
"mock-nunit-assembly.exe",
|
|
|
|
"Mono.Cecil.dll",
|
|
|
|
"nunit-agent-x86.exe",
|
|
|
|
"nunit-agent-x86.exe.config",
|
|
|
|
"nunit-agent.exe",
|
|
|
|
"nunit-agent.exe.config",
|
|
|
|
"nunit.engine.addin.xml",
|
|
|
|
"nunit.engine.addins",
|
|
|
|
"nunit.engine.api.dll",
|
|
|
|
"nunit.engine.api.xml",
|
|
|
|
"nunit.engine.dll",
|
|
|
|
"nunit.engine.tests.dll",
|
|
|
|
"nunit.engine.tests.dll.config",
|
|
|
|
"nunit.framework.dll",
|
|
|
|
"nunit.framework.xml",
|
|
|
|
"NUnit2TestResult.xsd",
|
|
|
|
"nunit3-console.exe",
|
|
|
|
"nunit3-console.exe.config",
|
|
|
|
"nunit3-console.tests.dll",
|
|
|
|
"nunitlite.dll",
|
|
|
|
"TextSummary.xslt",
|
|
|
|
"addins/nunit-project-loader.dll",
|
|
|
|
"addins/nunit-v2-result-writer.dll",
|
|
|
|
"addins/nunit.core.dll",
|
|
|
|
"addins/nunit.core.interfaces.dll",
|
|
|
|
"addins/nunit.v2.driver.dll",
|
|
|
|
"addins/vs-project-loader.dll",
|
|
|
|
"addins/tests/addin-tests.dll",
|
|
|
|
"addins/tests/nunit-project-loader.dll",
|
|
|
|
"addins/tests/nunit.engine.api.dll",
|
|
|
|
"addins/tests/nunit.engine.api.xml",
|
|
|
|
"addins/tests/nunit.framework.dll",
|
|
|
|
"addins/tests/nunit.framework.xml",
|
|
|
|
"addins/tests/vs-project-loader.dll",
|
|
|
|
"addins/v2-tests/nunit.framework.dll",
|
|
|
|
"addins/v2-tests/nunit.framework.xml",
|
|
|
|
"addins/v2-tests/nunit.v2.driver.tests.dll"
|
|
|
|
};
|
|
|
|
|
|
|
|
// Not all of these are present in every framework
|
|
|
|
var FrameworkFiles = new FilePath[]
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
"AppManifest.xaml",
|
2015-12-22 08:18:05 +03:00
|
|
|
"mock-assembly.dll",
|
|
|
|
"mock-assembly.exe",
|
2015-12-11 22:58:14 +03:00
|
|
|
"nunit.framework.dll",
|
|
|
|
"nunit.framework.xml",
|
|
|
|
"nunit.framework.tests.dll",
|
|
|
|
"nunit.framework.tests.xap",
|
|
|
|
"nunit.framework.tests_TestPage.html",
|
|
|
|
"nunit.testdata.dll",
|
|
|
|
"nunitlite.dll",
|
|
|
|
"nunitlite.tests.exe",
|
2015-12-22 08:18:05 +03:00
|
|
|
"nunitlite.tests.dll",
|
|
|
|
"slow-nunit-tests.dll",
|
|
|
|
"nunitlite-runner.exe"
|
2015-12-11 22:58:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
Task("PackageSource")
|
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2015-12-12 07:03:39 +03:00
|
|
|
CreateDirectory(PACKAGE_DIR);
|
2015-12-11 22:58:14 +03:00
|
|
|
RunGitCommand(string.Format("archive -o {0} HEAD", SRC_PACKAGE));
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
Task("CreateImage")
|
|
|
|
.Does(() =>
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2015-12-23 23:31:19 +03:00
|
|
|
var currentImageDir = IMAGE_DIR + "NUnit-" + packageVersion + "/";
|
2015-12-25 06:19:54 +03:00
|
|
|
var imageBinDir = currentImageDir + "bin/";
|
2015-12-23 07:01:41 +03:00
|
|
|
|
2015-12-23 23:31:19 +03:00
|
|
|
CleanDirectory(currentImageDir);
|
2015-12-11 22:58:14 +03:00
|
|
|
|
2015-12-23 23:31:19 +03:00
|
|
|
CopyFiles(RootFiles, currentImageDir);
|
2015-12-11 22:58:14 +03:00
|
|
|
|
2015-12-23 07:01:41 +03:00
|
|
|
CreateDirectory(imageBinDir);
|
2015-12-23 23:31:19 +03:00
|
|
|
Information("Created directory " + imageBinDir);
|
2015-12-11 22:58:14 +03:00
|
|
|
|
|
|
|
foreach(FilePath file in BinFiles)
|
|
|
|
{
|
|
|
|
if (FileExists(BIN_DIR + file))
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
CreateDirectory(imageBinDir + file.GetDirectory());
|
|
|
|
CopyFile(BIN_DIR + file, imageBinDir + file);
|
2015-12-11 22:58:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach (var runtime in AllFrameworks)
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
var targetDir = imageBinDir + Directory(runtime);
|
2015-12-11 22:58:14 +03:00
|
|
|
var sourceDir = BIN_DIR + Directory(runtime);
|
|
|
|
CreateDirectory(targetDir);
|
|
|
|
foreach (FilePath file in FrameworkFiles)
|
2015-12-12 07:33:55 +03:00
|
|
|
{
|
|
|
|
var sourcePath = sourceDir + "/" + file;
|
|
|
|
if (FileExists(sourcePath))
|
|
|
|
CopyFileToDirectory(sourcePath, targetDir);
|
|
|
|
}
|
2015-12-11 22:58:14 +03:00
|
|
|
}
|
2015-11-23 08:00:18 +03:00
|
|
|
});
|
2015-12-11 22:58:14 +03:00
|
|
|
|
|
|
|
Task("PackageZip")
|
|
|
|
.IsDependentOn("CreateImage")
|
|
|
|
.Does(() =>
|
|
|
|
{
|
2015-12-12 07:03:39 +03:00
|
|
|
CreateDirectory(PACKAGE_DIR);
|
2015-12-25 07:15:36 +03:00
|
|
|
|
|
|
|
var currentImageDir = IMAGE_DIR + "NUnit-" + packageVersion + "/";
|
|
|
|
|
|
|
|
var zipFiles =
|
|
|
|
GetFiles(currentImageDir + "*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/addins/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/addins/tests/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/addins/v2-tests/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/net-2.0/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/net-4.0/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/net-4.5/*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/portable/*.*");
|
|
|
|
Zip(currentImageDir, File(ZIP_PACKAGE), zipFiles);
|
|
|
|
|
|
|
|
zipFiles =
|
|
|
|
GetFiles(currentImageDir + "*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/sl-5.0/*.*");
|
|
|
|
Zip(currentImageDir, File(ZIP_PACKAGE_SL), zipFiles);
|
2015-12-11 22:58:14 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Task("PackageNuGet")
|
|
|
|
.IsDependentOn("CreateImage")
|
|
|
|
.Does(() =>
|
|
|
|
{
|
2015-12-23 23:31:19 +03:00
|
|
|
var currentImageDir = IMAGE_DIR + "NUnit-" + packageVersion + "/";
|
2015-12-23 07:01:41 +03:00
|
|
|
|
2015-12-12 07:03:39 +03:00
|
|
|
CreateDirectory(PACKAGE_DIR);
|
2015-12-11 22:58:14 +03:00
|
|
|
NuGetPack("nuget/nunit.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-11 22:58:14 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR
|
|
|
|
});
|
2015-12-22 08:18:05 +03:00
|
|
|
NuGetPack("nuget/nunitSL.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-22 08:18:05 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR
|
|
|
|
});
|
2015-12-11 22:58:14 +03:00
|
|
|
NuGetPack("nuget/nunitlite.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-11 22:58:14 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR
|
|
|
|
});
|
2015-12-22 08:18:05 +03:00
|
|
|
NuGetPack("nuget/nunitliteSL.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-22 08:18:05 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR
|
|
|
|
});
|
2015-12-11 22:58:14 +03:00
|
|
|
NuGetPack("nuget/nunit.console.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-11 22:58:14 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR,
|
|
|
|
NoPackageAnalysis = true
|
|
|
|
});
|
|
|
|
NuGetPack("nuget/nunit.runners.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-11 22:58:14 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR,
|
|
|
|
NoPackageAnalysis = true
|
|
|
|
});
|
|
|
|
NuGetPack("nuget/nunit.engine.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
2015-12-23 07:01:41 +03:00
|
|
|
Version = packageVersion,
|
2015-12-23 23:31:19 +03:00
|
|
|
BasePath = currentImageDir,
|
2015-12-11 22:58:14 +03:00
|
|
|
OutputDirectory = PACKAGE_DIR,
|
|
|
|
NoPackageAnalysis = true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2015-12-23 23:31:19 +03:00
|
|
|
Task("PackageMsi")
|
|
|
|
.IsDependentOn("CreateImage")
|
2015-12-25 21:05:53 +03:00
|
|
|
.WithCriteria(IsRunningOnWindows)
|
2015-12-23 23:31:19 +03:00
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
MSBuild("install/master/nunit.wixproj", new MSBuildSettings()
|
|
|
|
.WithTarget("Rebuild")
|
|
|
|
.SetConfiguration(configuration)
|
|
|
|
.WithProperty("PackageVersion", packageVersion)
|
|
|
|
.WithProperty("DisplayVersion", version)
|
|
|
|
.WithProperty("OutDir", PACKAGE_DIR)
|
|
|
|
.WithProperty("InstallImage", IMAGE_DIR + "NUnit-" + packageVersion)
|
|
|
|
.SetMSBuildPlatform(MSBuildPlatform.x86)
|
|
|
|
.SetNodeReuse(false)
|
|
|
|
);
|
|
|
|
});
|
2015-12-11 22:58:14 +03:00
|
|
|
|
2015-12-25 21:05:53 +03:00
|
|
|
Task("PackageCF")
|
|
|
|
.IsDependentOn("CreateImage")
|
|
|
|
.Does(() =>
|
|
|
|
{
|
|
|
|
CreateDirectory(PACKAGE_DIR);
|
|
|
|
|
|
|
|
var currentImageDir = IMAGE_DIR + "NUnit-" + packageVersion + "/";
|
|
|
|
|
|
|
|
var zipFiles =
|
|
|
|
GetFiles(currentImageDir + "*.*") +
|
|
|
|
GetFiles(currentImageDir + "bin/netcf-3.5/*.*");
|
|
|
|
|
|
|
|
Zip(currentImageDir, File(ZIP_PACKAGE_CF), zipFiles);
|
|
|
|
|
|
|
|
NuGetPack("nuget/nunitCF.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
|
|
|
Version = packageVersion,
|
|
|
|
BasePath = currentImageDir,
|
|
|
|
OutputDirectory = PACKAGE_DIR
|
|
|
|
});
|
|
|
|
NuGetPack("nuget/nunitLiteCF.nuspec", new NuGetPackSettings()
|
|
|
|
{
|
|
|
|
Version = packageVersion,
|
|
|
|
BasePath = currentImageDir,
|
|
|
|
OutputDirectory = PACKAGE_DIR
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2016-02-10 18:39:14 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// SETUP AND TEARDOWN TASKS
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
Setup(() =>
|
|
|
|
{
|
|
|
|
// Executed BEFORE the first task.
|
2016-02-13 11:16:31 +03:00
|
|
|
});
|
2016-02-10 18:39:14 +03:00
|
|
|
|
|
|
|
Teardown(() =>
|
|
|
|
{
|
|
|
|
// Executed AFTER the last task.
|
2016-02-13 11:30:44 +03:00
|
|
|
ErrorDetail=CheckForError(ErrorDetail);
|
2016-02-10 18:39:14 +03:00
|
|
|
});
|
2015-12-11 22:58:14 +03:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// HELPER METHODS
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
2016-02-13 11:30:44 +03:00
|
|
|
List<string> CheckForError(List<string> errorDetail)
|
2016-02-13 06:32:02 +03:00
|
|
|
{
|
2016-02-13 11:30:44 +03:00
|
|
|
if(errorDetail.Count != 0)
|
2016-02-13 06:32:02 +03:00
|
|
|
throw new Exception("One or more unit test failed, breaking the build.\n"
|
2016-02-13 11:30:44 +03:00
|
|
|
+ errorDetail.Aggregate((x,y) => x + "\n" + y));
|
|
|
|
errorDetail.Clear();
|
|
|
|
return errorDetail;
|
2016-02-13 06:32:02 +03:00
|
|
|
}
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
void BuildFramework(string configuration, string framework)
|
|
|
|
{
|
2015-12-12 06:34:40 +03:00
|
|
|
switch(framework)
|
|
|
|
{
|
|
|
|
case "net-4.5":
|
|
|
|
case "net-4.0":
|
|
|
|
case "net-2.0":
|
|
|
|
var suffix = framework.Substring(4);
|
|
|
|
BuildProject("src/NUnitFramework/framework/nunit.framework-" + suffix +".csproj", configuration);
|
2015-12-22 08:18:05 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite/nunitlite-" + suffix +".csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/mock-assembly/mock-assembly-" + suffix +".csproj", configuration);
|
2015-12-12 06:34:40 +03:00
|
|
|
BuildProject("src/NUnitFramework/testdata/nunit.testdata-" + suffix +".csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/slow-tests/slow-nunit-tests-" + suffix +".csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/tests/nunit.framework.tests-" + suffix +".csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/nunitlite.tests/nunitlite.tests-" + suffix +".csproj", configuration);
|
2015-12-22 08:18:05 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite-runner/nunitlite-runner-" + suffix + ".csproj", configuration);
|
2015-12-12 06:34:40 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case "portable":
|
|
|
|
BuildProject("src/NUnitFramework/framework/nunit.framework-portable.csproj", configuration);
|
2015-12-22 08:18:05 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite/nunitlite-portable.csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/mock-assembly/mock-assembly-portable.csproj", configuration);
|
2015-12-12 06:34:40 +03:00
|
|
|
BuildProject("src/NUnitFramework/testdata/nunit.testdata-portable.csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/tests/nunit.framework.tests-portable.csproj", configuration);
|
|
|
|
BuildProject("src/NUnitFramework/nunitlite.tests/nunitlite.tests-portable.csproj", configuration);
|
2015-12-22 08:18:05 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite-runner/nunitlite-runner-portable.csproj", configuration);
|
2015-12-12 06:34:40 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case "sl-5.0":
|
|
|
|
BuildProject("src/NUnitFramework/framework/nunit.framework-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
2015-12-22 08:18:05 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite/nunitlite-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
2015-12-22 08:41:07 +03:00
|
|
|
BuildProject("src/NUnitFramework/mock-assembly/mock-assembly-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
2015-12-12 06:34:40 +03:00
|
|
|
BuildProject("src/NUnitFramework/testdata/nunit.testdata-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
|
|
|
BuildProject("src/NUnitFramework/tests/nunit.framework.tests-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
2015-12-12 06:40:52 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite.tests/nunitlite.tests-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
2015-12-22 08:18:05 +03:00
|
|
|
BuildProject("src/NUnitFramework/nunitlite-runner/nunitlite-runner-sl-5.0.csproj", configuration, MSBuildPlatform.x86);
|
2015-12-12 06:34:40 +03:00
|
|
|
break;
|
|
|
|
}
|
2015-12-11 22:58:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void BuildEngine(string configuration)
|
|
|
|
{
|
|
|
|
BuildProject("./src/NUnitEngine/nunit.engine.api/nunit.engine.api.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/nunit.engine/nunit.engine.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/nunit-agent/nunit-agent.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/nunit-agent/nunit-agent-x86.csproj", configuration);
|
|
|
|
|
|
|
|
// Engine tests
|
|
|
|
BuildProject("./src/NUnitEngine/nunit.engine.tests/nunit.engine.tests.csproj", configuration);
|
|
|
|
|
2016-01-05 22:23:14 +03:00
|
|
|
// Driver and tests
|
|
|
|
if(IsRunningOnWindows())
|
|
|
|
{
|
2016-02-05 02:13:29 +03:00
|
|
|
BuildProject("./src/NUnitEngine/Portable/nunit.portable.agent/nunit.portable.agent.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/Portable/nunit.portable.agent.tests/nunit.portable.agent.tests.csproj", configuration);
|
2016-01-05 22:23:14 +03:00
|
|
|
}
|
2015-12-11 22:58:14 +03:00
|
|
|
|
|
|
|
// Addins
|
|
|
|
BuildProject("./src/NUnitEngine/Addins/nunit-project-loader/nunit-project-loader.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/Addins/vs-project-loader/vs-project-loader.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/Addins/nunit-v2-result-writer/nunit-v2-result-writer.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/Addins/nunit.v2.driver/nunit.v2.driver.csproj", configuration);
|
|
|
|
|
|
|
|
// Addin tests
|
|
|
|
BuildProject("./src/NUnitEngine/Addins/addin-tests/addin-tests.csproj", configuration);
|
|
|
|
BuildProject("./src/NUnitEngine/Addins/nunit.v2.driver.tests/nunit.v2.driver.tests.csproj", configuration);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BuildConsole(string configuration)
|
|
|
|
{
|
|
|
|
BuildProject("src/NUnitConsole/nunit3-console/nunit3-console.csproj", configuration);
|
|
|
|
BuildProject("src/NUnitConsole/nunit3-console.tests/nunit3-console.tests.csproj", configuration);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BuildProject(string projectPath, string configuration)
|
2015-12-12 06:34:40 +03:00
|
|
|
{
|
|
|
|
BuildProject(projectPath, configuration, MSBuildPlatform.Automatic);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BuildProject(string projectPath, string configuration, MSBuildPlatform buildPlatform)
|
2015-12-11 22:58:14 +03:00
|
|
|
{
|
|
|
|
if(IsRunningOnWindows())
|
|
|
|
{
|
|
|
|
// Use MSBuild
|
|
|
|
MSBuild(projectPath, new MSBuildSettings()
|
|
|
|
.SetConfiguration(configuration)
|
2015-12-12 06:34:40 +03:00
|
|
|
.SetMSBuildPlatform(buildPlatform)
|
2015-12-11 22:58:14 +03:00
|
|
|
.SetVerbosity(Verbosity.Minimal)
|
|
|
|
.SetNodeReuse(false)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Use XBuild
|
|
|
|
XBuild(projectPath, new XBuildSettings()
|
|
|
|
.WithTarget("Build")
|
|
|
|
.WithProperty("Configuration", configuration)
|
|
|
|
.SetVerbosity(Verbosity.Minimal)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-13 07:04:57 +03:00
|
|
|
void RunTest(FilePath exePath, DirectoryPath workingDir, string framework)
|
2015-12-11 22:58:14 +03:00
|
|
|
{
|
|
|
|
int rc = StartProcess(
|
|
|
|
MakeAbsolute(exePath),
|
|
|
|
new ProcessSettings()
|
|
|
|
{
|
|
|
|
WorkingDirectory = workingDir
|
|
|
|
});
|
|
|
|
|
|
|
|
if (rc > 0)
|
2016-02-13 07:04:57 +03:00
|
|
|
ErrorDetail.Add(string.Format("{0}: {1} tests failed",framework, rc));
|
2015-12-11 22:58:14 +03:00
|
|
|
else if (rc < 0)
|
2016-02-13 07:04:57 +03:00
|
|
|
ErrorDetail.Add(string.Format("{0} returned rc = {1}", exePath, rc));
|
2015-11-23 08:00:18 +03:00
|
|
|
}
|
|
|
|
|
2016-02-13 07:04:57 +03:00
|
|
|
void RunTest(FilePath exePath, DirectoryPath workingDir, string arguments, string framework)
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
int rc = StartProcess(
|
|
|
|
MakeAbsolute(exePath),
|
|
|
|
new ProcessSettings()
|
|
|
|
{
|
|
|
|
Arguments = arguments,
|
|
|
|
WorkingDirectory = workingDir
|
|
|
|
});
|
|
|
|
|
|
|
|
if (rc > 0)
|
2016-02-13 07:04:57 +03:00
|
|
|
ErrorDetail.Add(string.Format("{0}: {1} tests failed",framework, rc));
|
2015-12-11 22:58:14 +03:00
|
|
|
else if (rc < 0)
|
2016-02-13 07:04:57 +03:00
|
|
|
ErrorDetail.Add(string.Format("{0} returned rc = {1}", exePath, rc));
|
2015-11-23 08:00:18 +03:00
|
|
|
}
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
void RunGitCommand(string arguments)
|
2015-11-23 08:00:18 +03:00
|
|
|
{
|
2015-12-11 22:58:14 +03:00
|
|
|
StartProcess("git", new ProcessSettings()
|
|
|
|
{
|
|
|
|
Arguments = arguments
|
|
|
|
});
|
2015-11-23 08:00:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// TASK TARGETS
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
Task("Build")
|
|
|
|
.IsDependentOn("BuildAllFrameworks")
|
|
|
|
.IsDependentOn("BuildEngine")
|
|
|
|
.IsDependentOn("BuildConsole");
|
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
Task("Rebuild")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("Clean")
|
2015-11-23 08:00:18 +03:00
|
|
|
.IsDependentOn("Build");
|
|
|
|
|
|
|
|
Task("TestAll")
|
|
|
|
.IsDependentOn("TestAllFrameworks")
|
|
|
|
.IsDependentOn("TestEngine")
|
2016-01-05 22:23:14 +03:00
|
|
|
.IsDependentOn("TestDriver")
|
2015-11-23 08:00:18 +03:00
|
|
|
.IsDependentOn("TestAddins")
|
|
|
|
.IsDependentOn("TestV2Driver")
|
|
|
|
.IsDependentOn("TestConsole");
|
|
|
|
|
|
|
|
Task("Test")
|
|
|
|
.IsDependentOn("TestFramework")
|
|
|
|
.IsDependentOn("TestNUnitLite")
|
|
|
|
.IsDependentOn("TestEngine")
|
2016-01-05 22:23:14 +03:00
|
|
|
.IsDependentOn("TestDriver")
|
2015-11-23 08:00:18 +03:00
|
|
|
.IsDependentOn("TestAddins")
|
|
|
|
.IsDependentOn("TestV2Driver")
|
|
|
|
.IsDependentOn("TestConsole");
|
|
|
|
|
2015-12-11 22:58:14 +03:00
|
|
|
Task("Package")
|
2016-02-13 06:32:02 +03:00
|
|
|
.IsDependentOn("CheckForError")
|
2015-12-11 22:58:14 +03:00
|
|
|
.IsDependentOn("PackageSource")
|
|
|
|
.IsDependentOn("PackageZip")
|
2015-12-23 23:31:19 +03:00
|
|
|
.IsDependentOn("PackageNuGet")
|
|
|
|
.IsDependentOn("PackageMsi");
|
2015-12-11 22:58:14 +03:00
|
|
|
|
|
|
|
Task("Appveyor")
|
|
|
|
.IsDependentOn("Build")
|
|
|
|
.IsDependentOn("TestAll")
|
|
|
|
.IsDependentOn("Package");
|
|
|
|
|
|
|
|
Task("Travis")
|
|
|
|
.IsDependentOn("Build")
|
|
|
|
.IsDependentOn("TestAll");
|
|
|
|
|
2015-11-23 08:00:18 +03:00
|
|
|
Task("Default")
|
|
|
|
.IsDependentOn("Build"); // Rebuild?
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// EXECUTION
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
RunTarget(target);
|