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.
|
||||
|
||||
`-runTests`: Enable running of tests in the cake file. By default, the tests are skipped.
|
||||
|
||||
## Targets
|
||||
|
||||
**Default**: Alias for Local.
|
||||
|
||||
@@ -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