-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathazure-pipelines.yml
58 lines (47 loc) · 1.21 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
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
Configuration: 'Release'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- task: UseDotNet@2
inputs:
useGlobalJson: true
performMultiLevelLookup: true
- script: |
dotnet tool install --tool-path . nbgv
.\nbgv cloud
displayName: Set build number
#condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true))
- script: dotnet --info
displayName: Show dotnet SDK info
- task: DotNetCoreCLI@2
displayName: Restore NuGet packages
inputs:
command: restore
verbosityRestore: Minimal
- task: DotNetCoreCLI@2
displayName: Build solution
inputs:
command: build
arguments: --no-restore
- task: DotNetCoreCLI@2
displayName: Run tests
inputs:
command: test
arguments: --no-build
- task: CopyFiles@2
displayName: Collecting packages
inputs:
contents: |
bin/Packages/$(Configuration)/*.nupkg
bin/Packages/$(Configuration)/*.snupkg
targetFolder: $(Build.ArtifactStagingDirectory)/nugets
flattenFolders: true
- task: PublishPipelineArtifact@1
displayName: Publish nuget artifacts
inputs:
artifactName: nugets
targetPath: $(Build.ArtifactStagingDirectory)/nugets