ci/Appveyor: install diffutils via scoop

scoop is a Windows package manager, similar to homebrew on OSX.
It is written on powershell, works in unelevated accounts,
is regularly maintained, and does not need mingw/msys2/cygwin
or WSL environments.
Sample use case is running (busybox) bash,
which can be installed via scoop via "scoop install busybox",
to use CI bash scripts in Appveyor.

Parts of scoop's directory can be cached to avoid downloads.
scoop modifies the registry for persistence environment variables
so scoop itself cannot be cached.
This commit is contained in:
Jan Edmund Lazo 2020-01-12 01:14:43 -05:00
parent 40cc5822b1
commit 4faf30de3e
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
1 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,8 @@ $scoop = (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh'
Invoke-Expression $scoop
}
scoop install nodejs-lts perl
scoop install diffutils nodejs-lts perl
diff3 --version
node --version
npm.cmd --version
perl --version
@ -76,7 +77,7 @@ if ($compiler -eq 'MINGW') {
# in MSYS2, but we cannot build inside the MSYS2 shell.
$cmakeGenerator = 'Ninja'
$cmakeGeneratorArgs = '-v'
$mingwPackages = @('ninja', 'cmake', 'diffutils').ForEach({
$mingwPackages = @('ninja', 'cmake').ForEach({
"mingw-w64-$arch-$_"
})