Updating cake build so packaging no longer depends on building
This commit is contained in:
Родитель
b4e1b7c76a
Коммит
2c5e3d748a
|
@ -310,3 +310,4 @@ __pycache__/
|
|||
*.pyc
|
||||
# Cake - Uncomment if you are using it
|
||||
tools/
|
||||
!tools/packages.config
|
||||
|
|
16
build.cake
16
build.cake
|
@ -1,5 +1,3 @@
|
|||
#tool nuget:?package=NUnit.ConsoleRunner&version=3.5.0
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// ARGUMENTS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -65,6 +63,7 @@ var packageName = "NUnit3TestAdapter-" + packageVersion;
|
|||
var PROJECT_DIR = Context.Environment.WorkingDirectory.FullPath + "/";
|
||||
var PACKAGE_DIR = PROJECT_DIR + "package/";
|
||||
var PACKAGE_IMAGE_DIR = PACKAGE_DIR + packageName + "/";
|
||||
var SRC_DIR = PROJECT_DIR + "src/";
|
||||
var TOOLS_DIR = PROJECT_DIR + "tools/";
|
||||
var BIN_DIR = PROJECT_DIR + "bin/" + configuration + "/";
|
||||
var DEMO_BIN_DIR = PROJECT_DIR + "demo/NUnitTestDemo/bin/" + configuration + "/";
|
||||
|
@ -179,7 +178,6 @@ Task("CreatePackageDir")
|
|||
});
|
||||
|
||||
Task("CreateWorkingImage")
|
||||
.IsDependentOn("Build")
|
||||
.IsDependentOn("CreatePackageDir")
|
||||
.Does(() =>
|
||||
{
|
||||
|
@ -224,7 +222,6 @@ Task("PackageNuGet")
|
|||
});
|
||||
|
||||
Task("PackageVsix")
|
||||
.IsDependentOn("Build")
|
||||
.IsDependentOn("CreatePackageDir")
|
||||
.Does(() =>
|
||||
{
|
||||
|
@ -239,12 +236,10 @@ Task("PackageVsix")
|
|||
|
||||
void BuildSolution(string solutionPath, string configuration)
|
||||
{
|
||||
MSBuild(solutionPath, new MSBuildSettings()
|
||||
.SetConfiguration(configuration)
|
||||
.SetMSBuildPlatform(MSBuildPlatform.x86)
|
||||
.SetVerbosity(Verbosity.Minimal)
|
||||
.SetNodeReuse(false)
|
||||
);
|
||||
DotNetBuild(solutionPath, settings =>
|
||||
settings.SetConfiguration(configuration)
|
||||
.WithTarget("Build")
|
||||
.WithProperty("NodeReuse", "false"));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -260,7 +255,6 @@ Task("Test")
|
|||
.IsDependentOn("TestAdapterUsingVSTest");
|
||||
|
||||
Task("Package")
|
||||
.IsDependentOn("Build")
|
||||
.IsDependentOn("PackageZip")
|
||||
.IsDependentOn("PackageNuGet")
|
||||
.IsDependentOn("PackageVsix");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Cake" version="0.15.2" />
|
||||
<package id="NUnit.ConsoleRunner" version="3.4.1" />
|
||||
<package id="NUnit.ConsoleRunner" version="3.5.0" />
|
||||
</packages>
|
||||
|
|
Загрузка…
Ссылка в новой задаче