-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (41 loc) · 1.04 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
trigger:
- main
resources:
- repo: self
pool: 'Default'
steps:
- checkout: self
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '6.x'
- task: DotNetCoreCLI@2
displayName: "Run unit tests"
inputs:
command: test
projects: "**/*[Tt]est*/*.csproj"
publishTestResults: true
arguments: '--collect:"XPlat Code Coverage"'
- task: reportgenerator@5
displayName: Generate coverage report
inputs:
reports: "$(Agent.TempDirectory)/**/*.cobertura.xml"
targetdir: "$(Agent.TempDirectory)/CoverageResults"
- task: PublishCodeCoverageResults@1
displayName: Publish code coverage results
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(Agent.TempDirectory)/CoverageResults/Cobertura.xml"
- task: Docker@2
inputs:
repository: 'localhost:5000/backend'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
buildContext: './'
tags: |
$(Build.BuildId)
latest
- task: CmdLine@2
inputs:
script: 'docker compose up -d'
workingDirectory: '/home/pi/dockermonitor'