generated from ccvaillant1992/curso-qa-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.cake
42 lines (37 loc) · 1.14 KB
/
build.cake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var restore = Argument("restore", "Restore");
var build = Argument("build", "Build");
var test = Argument("test", "Test");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////
Task("Restore")
.Does(() =>
{
DotNetBuild("./SearchFood-ForPetApp/SearchFood-ForPet/SearchFoodForPet.csproj", new DotNetBuildSettings
{
Configuration = configuration,
});
});
Task("Build")
.IsDependentOn("Restore")
.Does(() =>
{
DotNetBuild("./SearchFood-ForPetApp/SearchFood-ForPet/SearchFoodForPet.csproj", new DotNetBuildSettings
{
Configuration = configuration
});
});
Task("Test")
.IsDependentOn("Build")
.Does(() =>
{
DotNetTest("./SearchFood-ForPetApp/SearchFood-ForPet.Tests/SearchFoodForPet.Tests.csproj", new DotNetTestSettings
{
Configuration = configuration
});
});
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
RunTarget(test);