mirror of
https://github.com/Jackett/Jackett
synced 2024-12-23 08:17:25 +00:00
Tidy up build script
This commit is contained in:
parent
ad143ce94f
commit
bc104e356c
1 changed files with 9 additions and 12 deletions
21
build.cake
21
build.cake
|
@ -17,9 +17,6 @@ var workingDir = MakeAbsolute(Directory("./"));
|
||||||
var artifactsDirName = "Artifacts";
|
var artifactsDirName = "Artifacts";
|
||||||
var testResultsDirName = "TestResults";
|
var testResultsDirName = "TestResults";
|
||||||
|
|
||||||
var windowsBuildFullFramework = "./BuildOutput/FullFramework/Windows";
|
|
||||||
var monoBuildFullFramework = "./BuildOutput/FullFramework/Mono";
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// TASKS
|
// TASKS
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
@ -45,7 +42,7 @@ Task("Clean")
|
||||||
Information("Clean completed");
|
Information("Clean completed");
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Build-Kestrel-Full-Framework")
|
Task("Build-Full-Framework")
|
||||||
.IsDependentOn("Clean")
|
.IsDependentOn("Clean")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
|
@ -59,7 +56,7 @@ Task("Build-Kestrel-Full-Framework")
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Run-Unit-Tests")
|
Task("Run-Unit-Tests")
|
||||||
.IsDependentOn("Build-Kestrel-Full-Framework")
|
.IsDependentOn("Build-Full-Framework")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
CreateDirectory("./" + testResultsDirName);
|
CreateDirectory("./" + testResultsDirName);
|
||||||
|
@ -91,7 +88,7 @@ Task("Check-Packaging-Platform")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Experimental-Kestrel-Windows-Full-Framework")
|
Task("Package-Windows-Full-Framework")
|
||||||
.IsDependentOn("Check-Packaging-Platform")
|
.IsDependentOn("Check-Packaging-Platform")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
|
@ -121,7 +118,7 @@ Task("Experimental-Kestrel-Windows-Full-Framework")
|
||||||
InnoSetup("./Installer.iss", settings);
|
InnoSetup("./Installer.iss", settings);
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Experimental-Kestrel-Mono-Full-Framework")
|
Task("Package-Mono-Full-Framework")
|
||||||
.IsDependentOn("Check-Packaging-Platform")
|
.IsDependentOn("Check-Packaging-Platform")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
|
@ -166,17 +163,17 @@ Task("Experimental-DotNetCore")
|
||||||
Gzip("./BuildOutput/Experimental/netcoreapp2.1/linux-x64", $"./{artifactsDirName}", "Jackett", "Experimental.netcoreapp.linux-x64.tar.gz");
|
Gzip("./BuildOutput/Experimental/netcoreapp2.1/linux-x64", $"./{artifactsDirName}", "Jackett", "Experimental.netcoreapp.linux-x64.tar.gz");
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Experimental")
|
Task("Package")
|
||||||
.IsDependentOn("Experimental-Kestrel-Windows-Full-Framework")
|
.IsDependentOn("Package-Windows-Full-Framework")
|
||||||
.IsDependentOn("Experimental-Kestrel-Mono-Full-Framework")
|
.IsDependentOn("Package-Mono-Full-Framework")
|
||||||
//.IsDependentOn("Experimental-DotNetCore")
|
//.IsDependentOn("Experimental-DotNetCore")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
Information("Experimental builds completed");
|
Information("Packaging completed");
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Appveyor-Push-Artifacts")
|
Task("Appveyor-Push-Artifacts")
|
||||||
.IsDependentOn("Experimental")
|
.IsDependentOn("Package")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
if (AppVeyor.IsRunningOnAppVeyor)
|
if (AppVeyor.IsRunningOnAppVeyor)
|
||||||
|
|
Loading…
Reference in a new issue