mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -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:
2
BUILD.md
2
BUILD.md
@@ -48,6 +48,8 @@ The build script itself is `build.cake`, written in Cake's C#-like DSL using the
|
|||||||
|
|
||||||
`-archive`: Enable the generation of publishable archives after a build.
|
`-archive`: Enable the generation of publishable archives after a build.
|
||||||
|
|
||||||
|
`-runTests`: Enable running of tests in the cake file. By default, the tests are skipped.
|
||||||
|
|
||||||
## Targets
|
## Targets
|
||||||
|
|
||||||
**Default**: Alias for Local.
|
**Default**: Alias for Local.
|
||||||
|
|||||||
@@ -279,6 +279,7 @@ Task("DotnetPackPublished")
|
|||||||
Task("TestAll")
|
Task("TestAll")
|
||||||
.IsDependentOn("Test")
|
.IsDependentOn("Test")
|
||||||
.IsDependentOn("TestCore")
|
.IsDependentOn("TestCore")
|
||||||
|
.WithCriteria(c => HasArgument("runTests"))
|
||||||
.Does(() =>{});
|
.Does(() =>{});
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -287,6 +288,7 @@ Task("TestAll")
|
|||||||
Task("TestCore")
|
Task("TestCore")
|
||||||
.IsDependentOn("Setup")
|
.IsDependentOn("Setup")
|
||||||
.IsDependentOn("Restore")
|
.IsDependentOn("Restore")
|
||||||
|
.WithCriteria(c => HasArgument("runTests"))
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
var testProjects = buildPlan.TestProjects
|
var testProjects = buildPlan.TestProjects
|
||||||
@@ -311,6 +313,7 @@ Task("Test")
|
|||||||
.IsDependentOn("SRGen")
|
.IsDependentOn("SRGen")
|
||||||
.IsDependentOn("CodeGen")
|
.IsDependentOn("CodeGen")
|
||||||
.IsDependentOn("BuildTest")
|
.IsDependentOn("BuildTest")
|
||||||
|
.WithCriteria(c => HasArgument("runTests"))
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
foreach (var pair in buildPlan.TestProjects)
|
foreach (var pair in buildPlan.TestProjects)
|
||||||
|
|||||||
Reference in New Issue
Block a user