mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 18:22:49 +08:00
* Remove explicit restore, and don't rebuild during tests. This currently fails because the release config doesn't contain symbols needed by opencover. * Build unit tests in debug Turns out that for test coverage we need to have debug symbols.
This commit is contained in:
parent
79029f50d3
commit
194f76cf7f
15
build.cake
15
build.cake
@ -102,17 +102,10 @@ Task("Version")
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Restore")
|
Task("Compile")
|
||||||
.IsDependentOn("Clean")
|
.IsDependentOn("Clean")
|
||||||
.IsDependentOn("Version")
|
.IsDependentOn("Version")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
|
||||||
DotNetCoreRestore(slnFile);
|
|
||||||
});
|
|
||||||
|
|
||||||
Task("Compile")
|
|
||||||
.IsDependentOn("Restore")
|
|
||||||
.Does(() =>
|
|
||||||
{
|
{
|
||||||
var settings = new DotNetCoreBuildSettings
|
var settings = new DotNetCoreBuildSettings
|
||||||
{
|
{
|
||||||
@ -199,6 +192,9 @@ Task("RunAcceptanceTests")
|
|||||||
var settings = new DotNetCoreTestSettings
|
var settings = new DotNetCoreTestSettings
|
||||||
{
|
{
|
||||||
Configuration = compileConfig,
|
Configuration = compileConfig,
|
||||||
|
ArgumentCustomization = args => args
|
||||||
|
.Append("--no-restore")
|
||||||
|
.Append("--no-build")
|
||||||
};
|
};
|
||||||
|
|
||||||
EnsureDirectoryExists(artifactsForAcceptanceTestsDir);
|
EnsureDirectoryExists(artifactsForAcceptanceTestsDir);
|
||||||
@ -212,6 +208,9 @@ Task("RunIntegrationTests")
|
|||||||
var settings = new DotNetCoreTestSettings
|
var settings = new DotNetCoreTestSettings
|
||||||
{
|
{
|
||||||
Configuration = compileConfig,
|
Configuration = compileConfig,
|
||||||
|
ArgumentCustomization = args => args
|
||||||
|
.Append("--no-restore")
|
||||||
|
.Append("--no-build")
|
||||||
};
|
};
|
||||||
|
|
||||||
EnsureDirectoryExists(artifactsForIntegrationTestsDir);
|
EnsureDirectoryExists(artifactsForIntegrationTestsDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user