-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
65 lines (57 loc) · 2.17 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
variables:
- group: td.deploy
jobs:
- job: BuildModule
pool:
vmImage: "windows-2022"
steps:
- task: NuGetToolInstaller@1
inputs:
checkLatest: true
- task: NuGetAuthenticate@1
- task: AzurePowerShell@5
displayName: "Build and Test"
condition: and(succeeded(), ne(variables['BuildType'], 'release') )
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
CodeSigningAccountName: $(CodeSigningAccountName)
CertificateProfileName: $(CertificateProfileName)
SigningEndpoint: $(SigningEndpoint)
inputs:
azureSubscription: "vs-sub"
scriptType: filePath
scriptPath: "./build.ps1"
scriptArguments: ""
azurePowerShellVersion: latestVersion
pwsh: true
- task: AzurePowerShell@5
displayName: "Build, Test and Publish"
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['Build.Reason'], 'Schedule'), eq(variables['BuildType'], 'release') )
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
CodeSigningAccountName: $(CodeSigningAccountName)
CertificateProfileName: $(CertificateProfileName)
SigningEndpoint: $(SigningEndpoint)
inputs:
azureSubscription: "vs-sub"
scriptType: filePath
scriptPath: "./build.ps1"
scriptArguments: "-Publish $true"
azurePowerShellVersion: latestVersion
pwsh: true
- task: PublishTestResults@2
inputs:
testRunner: "NUnit"
testResultsFiles: "**/Test-*.xml"
testRunTitle: "Unit Tests"
failTaskOnFailedTests: true
displayName: "Publish Test Results **/Test-*.xml"
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: "Publish Artifacts"
inputs:
PathtoPublish: output
ArtifactName: drop
publishLocation: Container
Parallel: true
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['Build.Reason'], 'Schedule'), eq(variables['BuildType'], 'release') )