forked from microsoft/IIS.Administration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
29 lines (29 loc) · 1.28 KB
/
appveyor.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
version: 1.0.{build}
clone_folder: '%iis_admin_solution_dir%'
init:
- ps: >
git config --global core.autocrlf true;
setx iis_admin_solution_dir $env:iis_admin_solution_dir /m;
npm install -g bower;
environment:
iis_admin_solution_dir: c:\src\repos\IIS.Administration
publish_out_dir: '%iis_admin_solution_dir%\bin\publish_out'
services: iis
before_build:
- ps: dotnet restore
build:
verbosity: minimal
after_build:
- ps: >
& "$env:iis_admin_solution_dir\scripts\publish\publish.ps1" -OutputPath $env:publish_out_dir -SkipRestore -SkipPrompt;
Get-WindowsOptionalFeature -Online | where {$_.FeatureName -match "IIS-" -and $_.State -eq [Microsoft.Dism.Commands.FeatureState]::Disabled} | % {Enable-WindowsOptionalFeature -Online -FeatureName $_.FeatureName};
& "$env:publish_out_dir\setup\setup.ps1" Install -Verbose -Port 44326;
$appsettings = Get-ChildItem -Recurse 'C:\Program Files\IIS Administration\' appsettings.json;
Copy-Item "$env:iis_admin_solution_dir\src\Microsoft.IIS.Administration\config\appsettings.json" $appsettings.FullName -force;
Restart-Service "Microsoft IIS Administration";
test_script:
- ps: dotnet test "$env:iis_admin_solution_dir\test\Microsoft.IIS.Administration.Tests"
artifacts:
- path: bin\publish_out
name: IIS Administration
type: zip