@@ -15,46 +15,43 @@ variables:
15
15
stages :
16
16
- stage : build
17
17
displayName : Build Toolkit
18
- steps :
19
- - task : UseDotNet@2
20
- inputs :
21
- version : ' 3.1.x'
22
- performMultiLevelLookup : true
23
-
24
- - task : DotNetCoreCLI@2
25
- displayName : ' Build Toolkit'
26
- inputs :
27
- command : ' build'
28
- arguments : ' --configuration $(configuration)'
29
- projects : ' $(basePath)/**/*.csproj'
30
-
31
- - task : DotNetCoreCLI@2
32
- displayName : ' Run Tests'
33
- inputs :
34
- command : ' test'
35
- arguments : ' --configuration $(configuration) --collect "Code coverage"'
36
- publishTestResults : true
37
- projects : ' $(basePath)/**/*.test.csproj'
38
-
39
- - pwsh : |
40
- Get-ChildItem -Path '$()' -Directory -Recurse | Where-Object { $_.FullName -match '\\bin|obj\\$(configuration)$' } | Write-Host
41
- displayName: Show Build Directories
42
-
43
- - task : PublishBuildArtifacts@1
44
- displayName : Publish Build Artifacts
45
- inputs :
46
- pathToPublish : ' $(basePath)/apimtemplate/bin/$(configuration)/**'
47
- artifactName : build
48
-
49
- - task : PublishTestResults@2
50
- displayName : ' Publish Test Results'
51
- inputs :
52
- testResultsFormat : xUnit
53
- searchFolder : ' $(Agent.TempDirectory)'
54
- testResultsFiles : ' **\*.xml'
55
-
56
-
57
-
58
-
59
-
60
-
18
+ jobs :
19
+ - job : build-and-test
20
+ displayName : ' Build and Tests'
21
+ steps :
22
+ - task : UseDotNet@2
23
+ inputs :
24
+ version : ' 3.1.x'
25
+ performMultiLevelLookup : true
26
+
27
+ - task : DotNetCoreCLI@2
28
+ displayName : ' Build Toolkit'
29
+ inputs :
30
+ command : ' build'
31
+ arguments : ' --configuration $(configuration)'
32
+ projects : ' $(basePath)/**/*.csproj'
33
+
34
+ - task : DotNetCoreCLI@2
35
+ displayName : ' Run Tests'
36
+ inputs :
37
+ command : ' test'
38
+ arguments : ' --configuration $(configuration) --collect "Code coverage"'
39
+ publishTestResults : true
40
+ projects : ' $(basePath)/**/*.test.csproj'
41
+
42
+ - pwsh : |
43
+ Get-ChildItem -Path '$()' -Directory -Recurse | Where-Object { $_.FullName -match '\\bin|obj\\$(configuration)$' } | Write-Host
44
+ displayName: Show Build Directories
45
+
46
+ - task : PublishBuildArtifacts@1
47
+ displayName : Publish Build Artifacts
48
+ inputs :
49
+ pathToPublish : ' $(basePath)/apimtemplate/bin/$(configuration)/**'
50
+ artifactName : build
51
+
52
+ - task : PublishTestResults@2
53
+ displayName : ' Publish Test Results'
54
+ inputs :
55
+ testResultsFormat : xUnit
56
+ searchFolder : ' $(Agent.TempDirectory)'
57
+ testResultsFiles : ' **\*.xml'
0 commit comments