forked from microsoft/Tools-for-Health-Data-Anonymization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
41 lines (35 loc) · 1006 Bytes
/
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
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
testProjects: "**/*Tests/*.csproj"
publishProject: "**/*Tool/*.csproj"
buildConfiguration: 'Release'
steps:
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '$(solution)'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Run All Tests
inputs:
command: test
projects: '$(testProjects)'
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
- task: DotNetCoreCLI@2
displayName: Publish Artifact
inputs:
command: 'publish'
projects: '$(publishProject)'
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
publishWebProjects: false
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Upload Artifact
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'FhirAnonymizerBuild'