"googlemock/vscode:/vscode.git/clone" did not exist on "d128fc8252d53baad6ea456fa08cbf9028d255f4"
Unverified Commit 13680d89 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] add CMake + R 3.6 test back (fixes #3469) (#4053)



* [ci] add CMake + R 3.6 test back (fixes #3469)

* Apply suggestions from code review
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>

* Update .ci/test_r_package_windows.ps1

* -Wait and remove rtools40

* empty commit
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
parent 85bda857
......@@ -28,6 +28,26 @@ function Run-R-Code-Redirect-Stderr {
Rscript --vanilla -e $decorated_code
}
# Remove all items matching some pattern from PATH environment variable
function Remove-From-Path {
param(
[string]$pattern_to_remove
)
$env:PATH = ($env:PATH.Split(';') | Where-Object { $_ -notmatch "$pattern_to_remove" }) -join ';'
}
# remove some details that exist in the GitHub Actions images which might
# cause conflicts with R and other components installed by this script
$env:RTOOLS40_HOME = ""
Remove-From-Path ".*chocolatey.*"
Remove-From-Path ".*Chocolatey.*"
Remove-From-Path ".*Git.*mingw64.*"
Remove-From-Path ".*msys64.*"
Remove-From-Path ".*rtools40.*"
Remove-From-Path ".*Strawberry.*"
Remove-Item C:\rtools40 -Force -Recurse -ErrorAction Ignore
# Get details needed for installing R components
#
# NOTES:
......@@ -98,7 +118,7 @@ Start-Process -FilePath R-win.exe -NoNewWindow -Wait -ArgumentList "/VERYSILENT
Write-Output "Done installing R"
Write-Output "Installing Rtools"
./Rtools.exe /VERYSILENT /SUPPRESSMSGBOXES /DIR=$RTOOLS_INSTALL_PATH ; Check-Output $?
Start-Process -FilePath Rtools.exe -NoNewWindow -Wait -ArgumentList "/VERYSILENT /SUPPRESSMSGBOXES /DIR=$RTOOLS_INSTALL_PATH" ; Check-Output $?
Write-Output "Done installing Rtools"
Write-Output "Installing dependencies"
......
......@@ -60,6 +60,12 @@ jobs:
compiler: clang
r_version: 4.0
build_type: cmake
- os: windows-latest
task: r-package
compiler: MINGW
toolchain: MINGW
r_version: 3.6
build_type: cmake
- os: windows-latest
task: r-package
compiler: MINGW
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment