mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Skipping tests in pipeline build step (#1358)
* Adding special argument for running tests in cake file to skip it during pipeline runs * documenting new build param in cake file
This commit is contained in:
@@ -279,6 +279,7 @@ Task("DotnetPackPublished")
|
||||
Task("TestAll")
|
||||
.IsDependentOn("Test")
|
||||
.IsDependentOn("TestCore")
|
||||
.WithCriteria(c => HasArgument("runTests"))
|
||||
.Does(() =>{});
|
||||
|
||||
/// <summary>
|
||||
@@ -287,6 +288,7 @@ Task("TestAll")
|
||||
Task("TestCore")
|
||||
.IsDependentOn("Setup")
|
||||
.IsDependentOn("Restore")
|
||||
.WithCriteria(c => HasArgument("runTests"))
|
||||
.Does(() =>
|
||||
{
|
||||
var testProjects = buildPlan.TestProjects
|
||||
@@ -311,6 +313,7 @@ Task("Test")
|
||||
.IsDependentOn("SRGen")
|
||||
.IsDependentOn("CodeGen")
|
||||
.IsDependentOn("BuildTest")
|
||||
.WithCriteria(c => HasArgument("runTests"))
|
||||
.Does(() =>
|
||||
{
|
||||
foreach (var pair in buildPlan.TestProjects)
|
||||
|
||||
Reference in New Issue
Block a user