|
| 1 | +#load "./../../../utilities/xunit.cake" |
| 2 | + |
| 3 | +Task("Cake.Common.Build.RwxProvider.Provider") |
| 4 | + .Does(() => { |
| 5 | + Assert.Equal(BuildProvider.Rwx, BuildSystem.Provider); |
| 6 | +}); |
| 7 | + |
| 8 | +Task("Cake.Common.Build.RwxProvider.Environment") |
| 9 | + .Does(() => { |
| 10 | + Information("RWX Provider:"); |
| 11 | + Information(" IsRunningOnRwx: {0}", BuildSystem.Rwx.IsRunningOnRwx); |
| 12 | + |
| 13 | + Information(" Environment:"); |
| 14 | + Information(" CI: {0}", BuildSystem.Rwx.Environment.CI); |
| 15 | + Information(" Rwx: {0}", BuildSystem.Rwx.Environment.Rwx); |
| 16 | + |
| 17 | + Information(" Run:"); |
| 18 | + Information(" Id: {0}", BuildSystem.Rwx.Environment.Run.Id); |
| 19 | + Information(" Title: {0}", BuildSystem.Rwx.Environment.Run.Title); |
| 20 | + Information(" Url: {0}", BuildSystem.Rwx.Environment.Run.Url); |
| 21 | + |
| 22 | + Information(" Task:"); |
| 23 | + Information(" Id: {0}", BuildSystem.Rwx.Environment.Task.Id); |
| 24 | + Information(" Url: {0}", BuildSystem.Rwx.Environment.Task.Url); |
| 25 | + Information(" AttemptNumber: {0}", BuildSystem.Rwx.Environment.Task.AttemptNumber); |
| 26 | + |
| 27 | + Information(" Actor:"); |
| 28 | + Information(" Id: {0}", BuildSystem.Rwx.Environment.Actor.Id); |
| 29 | + Information(" Name: {0}", BuildSystem.Rwx.Environment.Actor.Name); |
| 30 | +}); |
| 31 | + |
| 32 | +var rwxProviderTask = Task("Cake.Common.Build.RwxProvider") |
| 33 | + .IsDependentOn("Cake.Common.Build.RwxProvider.Environment"); |
| 34 | + |
| 35 | +if (BuildSystem.Rwx.IsRunningOnRwx) |
| 36 | +{ |
| 37 | + rwxProviderTask |
| 38 | + .IsDependentOn("Cake.Common.Build.RwxProvider.Provider"); |
| 39 | +} |
0 commit comments