forked from vcsjones/AzureSignTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (35 loc) · 1.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
queue: Hosted VS2017
variables:
BuildConfiguration: Release
steps:
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
- script: nbgv cloud
displayName: Set Version
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: '**/*.csproj'
configuration: $(BuildConfiguration)
packDirectory: $(Build.ArtifactStagingDirectory)\Artifacts
verbosityPack: Minimal
displayName: Pack
- task: DotNetCoreCLI@2
inputs:
command: test
projects: '**/*.Tests.csproj'
arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)\CodeCoverage.runsettings
displayName: Run Tests
- task: PublishBuildArtifacts@1
displayName: Publish Build Artifacts
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)\Artifacts
artifactType: container
artifactName: Artifacts
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))