-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.cake
59 lines (48 loc) · 2.02 KB
/
setup.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#load "nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease&version=0.3.0-unstable0278"
#addin "nuget:?package=Octopus.Client&version=4.22.1"
#tool "nuget:?package=OctopusTools&version=4.22.1"
#load "./Build/rps.cake"
#load "./Build/targets.cake"
#load "./Build/testing.cake"
#load "./Build/package.cake"
#load "./Build/deployment.cake"
#load "./Build/uat.cake"
Information(Figlet("RPS"));
Warning("Rocket Production System");
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./Sources/",
integrationTestScriptPath: ".", // Workaround: NULL Exception
testFilePattern: "/**/*.Test.dll",
title: "MyStik.TimeTable",
repositoryOwner: "AccelerateX-org",
repositoryName: "NINE",
appVeyorAccountName: "AccelerateX",
shouldExecuteGitLink: false,
shouldRunDupFinder: false,
shouldRunInspectCode: false);
BuildParameters.PrintParameters(Context);
ToolSettings.SetToolSettings(context: Context,
testCoverageFilter: "+[MyStik.TimeTable*]* -[MyStik.TimeTable*.Test]* -[MyStik.TimeTable*.UaTest]*");
RPS.Init(context: Context,
buildSystem: BuildSystem,
uaTestFilePattern: "/**/*.UaTest.dll",
shouldRunUnitTest: true,
shouldRunUaTest: true,
shouldDeploy: true,
branchDeployment: new BranchDeployment()
{
Tag = "Staging",
Master = "Staging",
Develop = "Dev",
Feature = "Dev",
Release = "QA",
Hotfix = "Staging",
Support = "Staging"
});
if (BuildParameters.IsDevelopBranch && !BuildParameters.IsPullRequest)
{
RPS.ShouldRunUnitTest = true;
}
Build.Run();