Skip to content

Commit 8a03d08

Browse files
committed
PostSharp.Engineering updated.
1 parent bfa50b7 commit 8a03d08

File tree

4 files changed

+78
-43
lines changed

4 files changed

+78
-43
lines changed

.teamcity/settings.kts

Lines changed: 66 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1+
// This file is automatically generated when you do `Build.ps1 prepare`.
2+
13
import jetbrains.buildServer.configs.kotlin.v2019_2.*
24
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.powerShell
35
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.*
46

57
version = "2019.2"
68

79
project {
8-
buildType(DebugBuild)
9-
buildType(ReleaseBuild)
10-
buildType(PublicBuild)
11-
buildType(Deploy)
10+
11+
buildType(DebugBuild)
12+
buildType(ReleaseBuild)
13+
buildType(PublicBuild)
14+
15+
buildType(Deploy)
1216
}
1317

14-
// Debug build (a numbered build)
1518
object DebugBuild : BuildType({
19+
1620
name = "Build [Debug]"
1721

18-
artifactRules = "+:artifacts/publish/**/*=>artifacts/publish"
22+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private"
1923

2024
vcs {
2125
root(DslContext.settingsRoot)
@@ -27,27 +31,41 @@ object DebugBuild : BuildType({
2731
path = "Build.ps1"
2832
}
2933
noProfile = false
30-
param("jetbrains_powershell_scriptArguments", "test --numbered %build.number%")
34+
param("jetbrains_powershell_scriptArguments", "test --configuration Debug --buildNumber %build.number%")
3135
}
3236
}
3337

38+
requirements {
39+
equals("env.BuildAgentType", "caravela02")
40+
}
41+
42+
43+
3444
triggers {
45+
3546
vcs {
36-
quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT
47+
watchChangesInDependencies = true
3748
branchFilter = "+:<default>"
38-
}
39-
}
49+
}
4050

41-
requirements {
42-
equals("env.BuildAgentType", "caravela02")
4351
}
52+
53+
dependencies {
54+
55+
snapshot(AbsoluteId("Metalama_Metalama_DebugBuild")) {
56+
onDependencyFailure = FailureAction.FAIL_TO_START
57+
}
58+
59+
60+
}
61+
4462
})
4563

46-
// Release build (with unsuffixed version number, unsigned)
4764
object ReleaseBuild : BuildType({
65+
4866
name = "Build [Release]"
4967

50-
artifactRules = "+:artifacts/publish/**/*=>artifacts/publish"
68+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private"
5169

5270
vcs {
5371
root(DslContext.settingsRoot)
@@ -59,20 +77,32 @@ object ReleaseBuild : BuildType({
5977
path = "Build.ps1"
6078
}
6179
noProfile = false
62-
param("jetbrains_powershell_scriptArguments", "test --numbered %build.number% --configuration Release")
80+
param("jetbrains_powershell_scriptArguments", "test --configuration Release --buildNumber %build.number%")
6381
}
6482
}
6583

6684
requirements {
6785
equals("env.BuildAgentType", "caravela02")
6886
}
87+
88+
89+
90+
dependencies {
91+
92+
snapshot(AbsoluteId("Metalama_Metalama_ReleaseBuild")) {
93+
onDependencyFailure = FailureAction.FAIL_TO_START
94+
}
95+
96+
97+
}
98+
6999
})
70100

71-
// Public build (a release build with unsuffixed version number)
72101
object PublicBuild : BuildType({
102+
73103
name = "Build [Public]"
74104

75-
artifactRules = "+:artifacts/publish/**/*=>artifacts/publish"
105+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private"
76106

77107
vcs {
78108
root(DslContext.settingsRoot)
@@ -84,17 +114,30 @@ object PublicBuild : BuildType({
84114
path = "Build.ps1"
85115
}
86116
noProfile = false
87-
param("jetbrains_powershell_scriptArguments", "test --public --configuration Release --sign")
117+
param("jetbrains_powershell_scriptArguments", "test --configuration Public --buildNumber %build.number%")
88118
}
89119
}
90120

91121
requirements {
92122
equals("env.BuildAgentType", "caravela02")
93123
}
124+
125+
126+
127+
dependencies {
128+
129+
snapshot(AbsoluteId("Metalama_Metalama_PublicBuild")) {
130+
onDependencyFailure = FailureAction.FAIL_TO_START
131+
}
132+
133+
134+
}
135+
94136
})
95137

96138
// Publish the release build to public feeds
97139
object Deploy : BuildType({
140+
98141
name = "Deploy [Public]"
99142
type = Type.DEPLOYMENT
100143

@@ -108,7 +151,7 @@ object Deploy : BuildType({
108151
path = "Build.ps1"
109152
}
110153
noProfile = false
111-
param("jetbrains_powershell_scriptArguments", "publish --public")
154+
param("jetbrains_powershell_scriptArguments", "publish --configuration Public")
112155
}
113156
}
114157

@@ -119,12 +162,14 @@ object Deploy : BuildType({
119162

120163
artifacts {
121164
cleanDestination = true
122-
artifactRules = "+:artifacts/publish/**/*=>artifacts/publish"
165+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public"
123166
}
124167
}
125168
}
126-
169+
127170
requirements {
128171
equals("env.BuildAgentType", "caravela02")
129172
}
130173
})
174+
175+

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<!-- Set the default versions of dependencies -->
1313
<PropertyGroup>
14-
<PostSharpEngineeringVersion>1.0.24-preview</PostSharpEngineeringVersion>
14+
<PostSharpEngineeringVersion>1.0.33-preview</PostSharpEngineeringVersion>
1515
<MetalamaVersion>branch:master</MetalamaVersion>
1616

1717
<!-- Example of dependencies to third parties -->

eng/src/Program.cs

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,17 @@
55
using PostSharp.Engineering.BuildTools.Build.Model;
66
using PostSharp.Engineering.BuildTools.Dependencies.Model;
77
using Spectre.Console.Cli;
8-
using System.Collections.Immutable;
98

10-
namespace BuildCaravela
9+
var product = new Product
1110
{
12-
internal static class Program
13-
{
14-
private static int Main( string[] args )
15-
{
16-
17-
var product = new Product
18-
{
19-
ProductName = "My.Product",
20-
Solutions = ImmutableArray.Create<Solution>( new DotNetSolution( "src\\My.Product.sln" ) ),
21-
PublicArtifacts = Pattern.Create( "My.Product.$(PackageVersion).nupkg" ),
22-
Dependencies = ImmutableArray.Create( Dependencies.PostSharpEngineering, Dependencies.Metalama )
23-
};
11+
ProductName = "My.Product",
12+
Solutions = new[] { new DotNetSolution( "src\\My.Product.sln" ) },
13+
PublicArtifacts = Pattern.Create( "My.Product.$(PackageVersion).nupkg" ),
14+
Dependencies = new[] { Dependencies.PostSharpEngineering, Dependencies.Metalama }
15+
};
2416

25-
var commandApp = new CommandApp();
26-
commandApp.AddProductCommands( product );
17+
var commandApp = new CommandApp();
2718

28-
return commandApp.Run( args );
29-
}
30-
}
31-
}
19+
commandApp.AddProductCommands( product );
20+
21+
return commandApp.Run( args );

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"rollForward": "disable"
55
},
66
"msbuild-sdks": {
7-
"PostSharp.Engineering.Sdk": "1.0.24-preview"
7+
"PostSharp.Engineering.Sdk": "1.0.33-preview"
88
}
99
}

0 commit comments

Comments
 (0)