-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
48 lines (41 loc) · 1.2 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
# Docker
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
- main
resources:
- repo: self
variables:
tag: '$(Build.BuildId)'
imageName: 'pitwall-api'
stages:
- stage: ContinuousIntegration
displayName: Local Build and Tests
jobs:
- job: BuildAndRunTests
displayName: Build solution and run tests
steps:
- task: DotNetCoreCLI@2
displayName: Restore package
inputs:
command: 'restore'
projects: '**/*.sln'
workingDirectory: 'src/PitWallDataGatheringApi'
- task: DotNetCoreCLI@2
displayName: Build solution
inputs:
command: 'build'
projects: '**/*.sln'
workingDirectory: 'src/PitWallDataGatheringApi'
- task: DotNetCoreCLI@2
displayName: Run tests
inputs:
command: 'test'
projects: '**/*.sln'
arguments: '--filter FullyQualifiedName!~Integration.Tests --collect "Code Coverage" --settings ./ci-tests.runsettings'
workingDirectory: 'src/PitWallDataGatheringApi'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'