forked from microsoft/IIS.Administration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
93 lines (81 loc) · 2.24 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
trigger:
branches:
include:
- dev
- master
- preview/*
- releases/*
pr:
autoCancel: "false"
branches:
include:
- dev
- master
- preview/*
- releases/*
jobs:
- job: build
pool:
name: 'Hosted VS2017' # name of the pool to run this job in
demands:
- msbuild
- visualstudio
- vstest
steps:
- checkout: self
- task: NuGetToolInstaller@0
inputs:
versionSpec: '>=4.7.1'
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk 2.1.505'
inputs:
version: 2.1.505
- task: NuGetCommand@2
displayName: 'Restore Dependencies'
inputs:
command: restore
restoreSolution: 'Microsoft.IIS.Administration.sln'
- task: PowerShell@2
displayName: 'Prep build and test'
inputs:
targetType: filePath
filePath: ./scripts/Configure-DevEnvironment.ps1
arguments: '-ConfigureTestEnvironment'
- task: MSBuild@1
displayName: 'Build IIS Administration'
inputs:
solution: Microsoft.IIS.Administration.sln
msbuildVersion: "15.0"
msbuildArchitecture: x64
configuration: 'release'
msbuildArguments: '/t:publish'
- task: PowerShell@2
displayName: 'Clean manifests'
inputs:
targetType: filePath
filePath: ./scripts/build/Clean-BuildDir.ps1
arguments: '-manifestDir $(Build.SourcesDirectory)/dist'
- task: PowerShell@2
displayName: 'Prep for test config file'
inputs:
targetType: filePath
filePath: ./scripts/tests/Copy-TestConfig.ps1
- task: NuGetCommand@2
displayName: 'Restore Dependencies on setup'
inputs:
command: restore
restoreSolution: 'installer/IISAdministrationSetup.sln'
- task: MSBuild@1
displayName: 'Build Setup executable'
inputs:
solution: installer/IISAdministrationSetup.sln
msbuildVersion: "15.0"
msbuildArchitecture: x64
platform: x64
configuration: 'release'
- task: PowerShell@2
displayName: 'PowerShell Script build.ps1'
inputs:
targetType: filePath
filePath: ./build.ps1
arguments: '-devSetup -install -test -verbose'