#177 - optimise the build scripts (#178)

* 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:
Philip Wood 2017-12-18 22:11:17 +00:00 committed by Tom Pallister
parent 79029f50d3
commit 194f76cf7f

View File

@ -102,17 +102,10 @@ Task("Version")
}
});
Task("Restore")
Task("Compile")
.IsDependentOn("Clean")
.IsDependentOn("Version")
.Does(() =>
{
DotNetCoreRestore(slnFile);
});
Task("Compile")
.IsDependentOn("Restore")
.Does(() =>
{
var settings = new DotNetCoreBuildSettings
{
@ -199,6 +192,9 @@ Task("RunAcceptanceTests")
var settings = new DotNetCoreTestSettings
{
Configuration = compileConfig,
ArgumentCustomization = args => args
.Append("--no-restore")
.Append("--no-build")
};
EnsureDirectoryExists(artifactsForAcceptanceTestsDir);
@ -212,6 +208,9 @@ Task("RunIntegrationTests")
var settings = new DotNetCoreTestSettings
{
Configuration = compileConfig,
ArgumentCustomization = args => args
.Append("--no-restore")
.Append("--no-build")
};
EnsureDirectoryExists(artifactsForIntegrationTestsDir);