-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
48 lines (45 loc) · 1.1 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
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '6.0.x'
installationPath: 'C:\Program Files\dotnet\'
- task: NuGetToolInstaller@1
displayName: "Install NuGet"
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
displayName: "Restore NuGet Packages"
- task: MSBuild@1
inputs:
solution: '**/*.sln'
msbuildArchitecture: 'x64'
configuration: 'Release'
displayName: "Build Project"
- task: DotNetCoreCLI@2
inputs:
command: 'test'
arguments: '-c Release'
projects: 'JMovies.IMDb.Tests'
testRunTitle: 'Unit Tests'
displayName: "Run Unit Tests"
- task: CopyFiles@2
inputs:
SourceFolder: ''
Contents: '**/*.nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: "Copy Artifacts"
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
displayName: "Publish Artifacts"