File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ parameters:
8
8
9
9
steps :
10
10
- pwsh : |
11
+ Get-Content $PSCommandPath
11
12
dotnet cake build.cake `
12
13
--target=ci-build `
13
14
--configuration="$(configuration)" `
@@ -21,12 +22,14 @@ steps:
21
22
RepositoryType: "git"
22
23
23
24
- pwsh : |
25
+ Get-Content $PSCommandPath
24
26
dotnet cake validation.cake `
25
27
--namespaces="${{ join(',', parameters.validPackagePrefixes) }}" `
26
28
--verbosity="$(verbosity)"
27
29
displayName: 'Run NuGet package validation'
28
30
29
31
- pwsh : |
32
+ Get-Content $PSCommandPath
30
33
dotnet cake nuget-diff.cake `
31
34
--artifacts="${{ parameters.artifactsPath }}" `
32
35
--output="${{ parameters.artifactsPath }}/api-diff" `
@@ -35,10 +38,13 @@ steps:
35
38
displayName: 'Generate API diff'
36
39
condition: eq(variables['Agent.OS'], 'Windows_NT')
37
40
38
- - pwsh : dotnet cake utilities.cake -t=verify-namespace-file
41
+ - pwsh : |
42
+ Get-Content $PSCommandPath
43
+ dotnet cake utilities.cake -t=verify-namespace-file
39
44
displayName: Verify published namespaces
40
45
41
46
- pwsh : |
47
+ Get-Content $PSCommandPath
42
48
dotnet cake build.cake `
43
49
--target=ci-samples `
44
50
--configuration="$(configuration)" `
Original file line number Diff line number Diff line change 51
51
52
52
# Copy SignList.xml to output
53
53
- pwsh : |
54
+ Get-Content $PSCommandPath
54
55
$srcExists = (Test-Path "${{ parameters.signListPath }}")
55
56
$dstExists = (Test-Path "${{ parameters.artifactsPath }}\SignList.xml")
56
57
if ($srcExists -and !$dstExists) {
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ jobs:
36
36
arguments : -c $(configuration)
37
37
38
38
# Figure out which tests this slice is running
39
- - pwsh : >-
40
- dotnet dotnet-test-slicer
41
- slice
42
- --test-assembly="${{ parameters.testAssembly }}"
43
- --test-filter="${{ parameters.testFilter }}"
44
- --slice-number=$(System.JobPositionInPhase)
45
- --total-slices=$(System.TotalJobsInPhase)
46
- --outfile="${{ parameters.testAssembly }}.runsettings"
39
+ - pwsh : |
40
+ Get-Content $PSCommandPath
41
+ dotnet dotnet-test-slicer slice `
42
+ --test-assembly="${{ parameters.testAssembly }}" `
43
+ --test-filter="${{ parameters.testFilter }}" `
44
+ --slice-number=$(System.JobPositionInPhase) `
45
+ --total-slices=$(System.TotalJobsInPhase) `
46
+ --outfile="${{ parameters.testAssembly }}.runsettings"
47
47
displayName: Slice unit tests
48
48
failOnStderr: true
49
49
You can’t perform that action at this time.
0 commit comments