File tree Expand file tree Collapse file tree 8 files changed +20
-17
lines changed Expand file tree Collapse file tree 8 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ public override void Setup(BuildContext context)
14
14
base . Setup ( context ) ;
15
15
context . IsDockerOnLinux = context . DockerCustomCommand ( "info --format '{{.OSType}}'" ) . First ( ) . Replace ( "'" , "" ) == "linux" ;
16
16
17
- var dockerRegistry = context . Argument ( "docker_registry" , "github" ) . ToLower ( ) ;
18
- var dotnetVersion = context . Argument ( "docker_dotnetversion" , "" ) . ToLower ( ) ;
19
- var dockerDistro = context . Argument ( "docker_distro" , "" ) . ToLower ( ) ;
17
+ var dockerRegistry = context . Argument ( Arguments . DockerRegistry , "github" ) . ToLower ( ) ;
18
+ var dotnetVersion = context . Argument ( Arguments . DockerDotnetversion , string . Empty ) . ToLower ( ) ;
19
+ var dockerDistro = context . Argument ( Arguments . DockerDistro , string . Empty ) . ToLower ( ) ;
20
20
21
21
var versions = string . IsNullOrWhiteSpace ( dotnetVersion ) ? Constants . VersionsToBuild : new [ ] { dotnetVersion } ;
22
22
var distros = string . IsNullOrWhiteSpace ( dockerDistro ) ? Constants . DockerDistrosToBuild : new [ ] { dockerDistro } ;
Original file line number Diff line number Diff line change 7
7
namespace Build . Tasks
8
8
{
9
9
[ TaskName ( nameof ( Build ) ) ]
10
- [ TaskDescription ( "Builds the solution" ) ]
10
+ [ TaskDescription ( "Builds the solution. " ) ]
11
11
[ IsDependentOn ( typeof ( Clean ) ) ]
12
12
[ IsDependentOn ( typeof ( CodeFormat ) ) ]
13
13
public sealed class Build : FrostingTask < BuildContext >
Original file line number Diff line number Diff line change 6
6
namespace Build . Tasks
7
7
{
8
8
[ TaskName ( nameof ( Clean ) ) ]
9
- [ TaskDescription ( "Cleans build artifacts" ) ]
9
+ [ TaskDescription ( "Cleans build artifacts. " ) ]
10
10
public sealed class Clean : FrostingTask < BuildContext >
11
11
{
12
12
public override void Run ( BuildContext context )
Original file line number Diff line number Diff line change 3
3
namespace Build . Tasks
4
4
{
5
5
[ TaskName ( nameof ( Test ) ) ]
6
- [ TaskDescription ( "Run the tests. Can be specified the target framework with --dotnet_target= " ) ]
6
+ [ TaskDescription ( "(CI only) Run the tests and publish the results. " ) ]
7
7
[ IsDependentOn ( typeof ( PublishCoverage ) ) ]
8
8
public class Test : FrostingTask < BuildContext >
9
9
{
Original file line number Diff line number Diff line change 17
17
namespace Build . Tasks
18
18
{
19
19
[ TaskName ( nameof ( UnitTest ) ) ]
20
- [ TaskDescription ( "Run the unit tests. Can be specified the target framework with --dotnet_target=" ) ]
20
+ [ TaskDescription ( "Run the tests. Can be specified the target framework with --dotnet_target={target} where target is net5.0, net48 or netcoreapp3.1 " ) ]
21
21
[ IsDependentOn ( typeof ( Build ) ) ]
22
22
public class UnitTest : FrostingTask < BuildContext >
23
23
{
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ namespace Common . Utilities
2
+ {
3
+ public class Arguments
4
+ {
5
+ public const string Configuration = "configuration" ;
6
+ public const string DotnetTarget = "dotnet_target" ;
7
+ public const string DockerRegistry = "docker_registry" ;
8
+ public const string DockerDotnetversion = "docker_dotnetversion" ;
9
+ public const string DockerDistro = "docker_distro" ;
10
+ }
11
+ }
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ public override void Setup(BuildContext context)
15
15
16
16
context . IsDockerOnLinux = context . DockerCustomCommand ( "info --format '{{.OSType}}'" ) . First ( ) . Replace ( "'" , "" ) == "linux" ;
17
17
18
- var dotnetVersion = context . Argument ( "docker_dotnetversion" , "" ) . ToLower ( ) ;
19
- var dockerDistro = context . Argument ( "docker_distro" , "" ) . ToLower ( ) ;
18
+ var dotnetVersion = context . Argument ( Arguments . DockerDotnetversion , string . Empty ) . ToLower ( ) ;
19
+ var dockerDistro = context . Argument ( Arguments . DockerDistro , string . Empty ) . ToLower ( ) ;
20
20
21
21
var versions = string . IsNullOrWhiteSpace ( dotnetVersion ) ? Constants . VersionsToBuild : new [ ] { dotnetVersion } ;
22
22
var distros = string . IsNullOrWhiteSpace ( dockerDistro ) ? Constants . DockerDistrosToBuild : new [ ] { dockerDistro } ;
You can’t perform that action at this time.
0 commit comments