|
|
|
@ -25,14 +25,14 @@ if ! type -P pwsh &>/dev/null; then
|
|
|
|
|
"$srcdir/install_powershell.sh"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# leading whitespace break PowerShell commands
|
|
|
|
|
pwsh << EOF
|
|
|
|
|
Install-Module AppVeyorBYOC -Scope CurrentUser -Force; Import-Module AppVeyorBYOC
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
# AppVeyor host dependencies
|
|
|
|
|
# sysvinit-tools on RHEL, but appveyor byoc looks for dpkg so is probably only compatible with debian based distributions
|
|
|
|
|
if grep -Eiq 'debian|ubuntu' /etc/*release; then
|
|
|
|
|
apt-get update
|
|
|
|
|
apt-get install -y libcap2-bin libterm-ui-perl sudo sysvinit-utils
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# leading whitespace break PowerShell commands
|
|
|
|
|
pwsh << EOF
|
|
|
|
|
Install-Module AppVeyorBYOC -Scope CurrentUser -Force; Import-Module AppVeyorBYOC
|
|
|
|
|
EOF
|
|
|
|
|