-
Notifications
You must be signed in to change notification settings - Fork 44
/
azure-pipelines.yml
52 lines (44 loc) · 1.18 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
resources:
- repo: self
pool:
vmImage: 'windows-latest'
demands:
- msbuild
- visualstudio
steps:
- task: NuGetToolInstaller@0
displayName: 'Install NuGet'
#inputs:
#versionSpec: 4.9.x
#checkLatest: false # Optional
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: Helixbase.sln
feedsToUse: config
nugetConfigPath: NuGet.config
# Build the entire solution so the test assemblies are available
- task: VSBuild@1
displayName: 'Build solution'
inputs:
solution: Helixbase.sln
platform: 'Any CPU'
configuration: 'Release'
- task: VSTest@2
inputs:
testSelector: testAssemblies
testAssemblyVer2: '**\*Tests.dll'
runInParallel: true
codeCoverageEnabled: true
- task: VSBuild@1
displayName: 'Publish Website WDP'
inputs:
solution: Helixbase.sln
msbuildArgs: '/t:Website\Helixbase_Website:WebPublish /p:PublishProfile=Package /p:DefaultPackageOutputDir=$(build.artifactstagingdirectory)'
platform: 'Any CPU'
configuration: 'Release'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()