FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SharedSource-Build/Build/Build.cs at develop · re-motion/SharedSource-Build · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
re-motion
/
SharedSource-Build
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
0
Code
Pull requests
1
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
SharedSource-Build
/
Build
/
Build.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
84 lines (73 loc) · 2.93 KB
Breadcrumbs
SharedSource-Build
/
Build
/
Build.cs
Copy path
File metadata and controls
84 lines (73 loc) · 2.93 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using
System
;
using
System
.
Collections
.
Immutable
;
using
System
.
Linq
;
using
Nuke
.
Common
.
Tools
.
GitVersion
;
using
Remotion
.
BuildScript
;
using
Remotion
.
BuildScript
.
Components
;
using
Remotion
.
BuildScript
.
Test
;
using
Remotion
.
BuildScript
.
Test
.
Dimensions
;
using
static
Remotion
.
BuildScript
.
Test
.
Dimensions
.
Configurations
;
using
static
Remotion
.
BuildScript
.
Test
.
Dimensions
.
ExecutionRuntimes
;
using
static
Remotion
.
BuildScript
.
Test
.
Dimensions
.
Platforms
;
using
static
Remotion
.
BuildScript
.
Test
.
Dimensions
.
TargetFrameworks
;
// ReSharper disable RedundantTypeArgumentsOfMethod
class
Build
:
RemotionBuild
,
IBuildMetadata
{
[
GitVersion
(
UpdateBuildNumber
=
false
)
]
GitVersion
GitVersion
;
public
static
int
Main
(
)
=>
Execute
<
Build
>
(
)
;
string
IBuildMetadata
.
GetBaseVersion
(
)
{
return
GitVersion
.
MajorMinorPatch
;
}
public
override
void
ConfigureProjects
(
ProjectsBuilder
projects
)
{
var
normalTestConfiguration
=
new
TestConfiguration
(
DefaultTestExecutionRuntimeFactory
.
Instance
,
TestMatrices
.
Single
(
e
=>
e
.
Name
==
"NormalTestMatrix"
)
,
ImmutableArray
<
ITestExecutionWrapper
>
.
Empty
)
;
var
localOnlyTestConfiguration
=
new
TestConfiguration
(
DefaultTestExecutionRuntimeFactory
.
Instance
,
TestMatrices
.
Single
(
e
=>
e
.
Name
==
"LocalOnlyTestMatrix"
)
,
ImmutableArray
<
ITestExecutionWrapper
>
.
Empty
)
;
projects
.
AddReleaseProject
(
"BuildScript.Nuke"
)
;
projects
.
AddUnitTestProject
(
"BuildScript.Nuke.IntegrationTests"
,
localOnlyTestConfiguration
)
;
projects
.
AddUnitTestProject
(
"BuildScript.Nuke.UnitTests"
,
normalTestConfiguration
)
;
}
public
override
void
ConfigureSupportedTestDimensions
(
SupportedTestDimensionsBuilder
supportedTestDimensions
)
{
supportedTestDimensions
.
AddSupportedDimension
<
ExecutionRuntimes
>
(
LocalMachine
,
EnforcedLocalMachine
,
Docker_Win_NET8_0
)
;
supportedTestDimensions
.
AddSupportedDimension
<
TargetFrameworks
>
(
NET8_0
)
;
supportedTestDimensions
.
AddSupportedDimension
<
Configurations
>
(
Debug
,
Release
)
;
supportedTestDimensions
.
AddSupportedDimension
<
Platforms
>
(
x64
)
;
}
public
override
void
ConfigureTestMatrix
(
TestMatricesBuilder
builder
)
{
builder
.
AddTestMatrix
(
"NormalTestMatrix"
,
new
TestDimension
[
,
]
{
{
Docker_Win_NET8_0
,
NET8_0
,
Debug
,
x64
}
,
{
Docker_Win_NET8_0
,
NET8_0
,
Release
,
x64
}
,
// Local
{
LocalMachine
,
NET8_0
,
Debug
,
x64
}
,
{
LocalMachine
,
NET8_0
,
Release
,
x64
}
,
}
,
allowEmpty
:
true
)
;
builder
.
AddTestMatrix
(
"LocalOnlyTestMatrix"
,
new
TestDimension
[
,
]
{
// TODO RMSRCBUILD-308: Fix integration tests on TeamCity
// { EnforcedLocalMachine, NET8_0, Debug, x64 },
// { EnforcedLocalMachine, NET8_0, Release, x64 },
// Local
{
LocalMachine
,
NET8_0
,
Debug
,
x64
}
,
{
LocalMachine
,
NET8_0
,
Release
,
x64
}
,
}
,
allowEmpty
:
true
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL