AppVeyor/AppVeyorInstall.ps1

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
#---------------------------------#
# Header #
#---------------------------------#
Write-Host 'Running AppVeyor install script' -ForegroundColor Yellow

Write-Host "'$($psversiontable.psversion)' installed." -ForegroundColor Yellow

#---------------------------------#
# Install NuGet #
#---------------------------------#
Write-Host 'Installing NuGet PackageProvide'
$pkg = Install-PackageProvider -Name NuGet -Force
Write-Host "Installed NuGet version '$($pkg.version)'" 
#---------------------------------#
# Install Pester #
#---------------------------------#
Write-Host 'Installing Pester'
Install-Module -Name Pester -Repository PSGallery -Force

#---------------------------------#
# Install PSScriptAnalyzer #
#---------------------------------#
Write-Host 'Installing PSScriptAnalyzer'
Install-Module PSScriptAnalyzer -Repository PSGallery -Force

#---------------------------------#
# Install Hyper-V & PoSH Mods #
#---------------------------------#
Write-Host 'Installing Hyper-V and PowerShell modules'
Install-WindowsFeature â€“Name Hyper-V -IncludeManagementTools