This commit is contained in:
Aleksandr Chebotov
2020-10-23 14:28:34 +03:00
203 changed files with 2887 additions and 2187 deletions

View File

@@ -3,8 +3,6 @@
## Desc: Install Git for Windows
################################################################################
Import-Module -Name ImageHelpers
function getSimpleValue([string] $url, [string] $filename ) {
$fullpath = "${env:Temp}\$filename"
Invoke-WebRequest -Uri $url -OutFile $fullpath
@@ -38,5 +36,13 @@ Choco-Install -PackageName hub
# Disable GCM machine-wide
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
if (Test-IsWin16) {
$env:Path += ";$env:ProgramFiles\OpenSSH-Win64"
}
# Add well-known SSH host keys to ssh_known_hosts
ssh-keyscan -t rsa github.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
ssh-keyscan -t rsa ssh.dev.azure.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
Invoke-PesterTests -TestFile "Git" -TestName "Git"
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "Hub CLI"