forked from majkinetor/au
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.ps1
39 lines (29 loc) · 809 Bytes
/
setup.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
31
32
33
34
35
36
37
38
39
#requires -version 5
$s = {
chocolatey
psgallery
git_4windows
pester
cinst papercut
}
function git_4windows() {
if (!(Get-Command git -ea ignore)) { "Installing git"; cinst git }
git --version
}
function pester() {
"Installing pester"
inmo pester -Force -MaximumVersion 4.10.1 #3.4.3
$version = Get-Module pester -ListAvailable | ForEach-Object { $_.Version.ToString() }
"Pester version: $version"
}
function chocolatey() {
"Installing chocolatey"
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression
"Chocolatey version: $(choco -v)"
}
function psgallery() {
"Installing PSGallery"
Install-PackageProvider -Name NuGet -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
}
& $s