-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
51 lines (43 loc) · 1.13 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
resources:
- repo: self
pool:
name: Hosted VS2017
demands:
- msbuild
- visualstudio
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.9.x'
inputs:
versionSpec: 4.9.x
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: Toast.sln
feedsToUse: config
nugetConfigPath: NuGet.config
# Build the entire solution so the test assemblies are available
- task: VSBuild@1
displayName: 'Build solution'
inputs:
solution: Toast.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: Toast.sln
msbuildArgs: '/t:Website\Toast_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()