This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ trigger :
2
+ - main
3
+ - refs/tags/*
4
+
5
+ pr :
6
+ - main
7
+
8
+ pool :
9
+ name : ' VSEngSS-MicroBuild2022-1ES'
10
+
11
+ variables :
12
+ basePath : ' src/APIM_ARMTemplate'
13
+ configuration : ' Release'
14
+
15
+ stages :
16
+ - stage : build
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
+
You can’t perform that action at this time.
0 commit comments