@@ -13,18 +13,12 @@ variables:
1313 TZ : " UTC" # # to avoid 'Failed to create bus connection' from timedatectl via Sys.timezone() on Docker with R 3.4.
1414 # # Setting TZ for all GLCI jobs to isolate them from timezone. We could have a new GLCI job to test under
1515 # # a non-UTC timezone, although, that's what we do routinely in dev.
16- R_REL_VERSION : " 4.4"
16+ R_REL_VERSION : " 4.4" # only raise when RTOOLS for REL is available
1717 R_REL_WIN_BIN : " https://cloud.r-project.org/bin/windows/base/old/4.4.1/R-4.4.1-win.exe"
18- RTOOLS_REL_BIN : " https://cloud.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6104-6039.exe"
19- RTOOLS43_HOME : " /c/rtools"
2018 R_DEV_VERSION : " 4.5"
2119 R_DEV_WIN_BIN : " https://cloud.r-project.org/bin/windows/base/R-devel-win.exe"
22- RTOOLS_DEV_BIN : " https://cloud.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6104-6039.exe"
23- RTOOLS44_HOME : " " # # in case R-devel will use new Rtools toolchain, now it uses 4.4 env var
2420 R_OLD_VERSION : " 4.3"
2521 R_OLD_WIN_BIN : " https://cloud.r-project.org/bin/windows/base/old/4.3.3/R-4.3.3-win.exe"
26- RTOOLS_OLD_BIN : " https://cloud.r-project.org/bin/windows/Rtools/rtools43/files/rtools43-5958-5975.exe"
27- RTOOLS42_HOME : " /c/rtools"
2822
2923stages :
3024 - dependencies
@@ -220,9 +214,13 @@ test-lin-ancient-cran:
220214 tags :
221215 - saas-windows-medium-amd64
222216 before_script :
223- - curl.exe -s -o ../R-win.exe $R_BIN --fail ; if (!(Test-Path -Path ..\R-win.exe)) {Write-Error "R-win.exe not found, download failed?"}
217+ - Invoke-WebRequest -Uri $R_BIN -OutFile ../R-win.exe -ErrorAction Stop ; if (!(Test-Path -Path ..\R-win.exe)) {Write-Error "R-win.exe not found, download failed?"}
224218 - Start-Process -FilePath ..\R-win.exe -ArgumentList "/VERYSILENT /DIR=C:\R" -NoNewWindow -Wait
225- - curl.exe -s -o ../rtools.exe $RTOOLS_BIN --fail; if (!(Test-Path -Path ..\rtools.exe)) {Write-Error "rtools.exe not found, download failed?"}
219+ - $VERSION = $RTOOLS_VERSION -replace '\.', ''
220+ # persist RTOOLSXX_HOME="/c/rtools" which is needed for finding gcc #6552
221+ - Add-Content -Path ".\.Renviron" -Value "RTOOLS${VERSION}_HOME='/c/rtools'"
222+ - $RTOOLS_BIN="https://github.com/r-hub/rtools${VERSION}/releases/download/latest/rtools${VERSION}.exe"
223+ - Invoke-WebRequest -Uri $RTOOLS_BIN -OutFile ../rtools.exe -ErrorAction Stop; if (!(Test-Path -Path ..\rtools.exe)) {Write-Error "rtools.exe not found, download failed?"}
226224 - Start-Process -FilePath ..\rtools.exe -ArgumentList "/VERYSILENT /DIR=C:\rtools" -NoNewWindow -Wait
227225 - $env:PATH = "C:\R\bin;C:\rtools\usr\bin;$env:PATH"
228226 - Rscript.exe -e "source('.ci/ci.R'); install.packages(dcf.dependencies('DESCRIPTION', which='all'), repos=file.path('file://',getwd(),'bus/mirror-packages/cran'), quiet=TRUE)"
@@ -245,27 +243,24 @@ test-lin-ancient-cran:
245243test-win-rel :
246244 << : *test-win
247245 variables :
248- R_VERSION : " $R_REL_VERSION"
249246 R_BIN : " $R_REL_WIN_BIN"
250- RTOOLS_BIN : " $RTOOLS_REL_BIN "
247+ RTOOLS_VERSION : " $R_REL_VERSION "
251248
252249# # R-devel on Windows
253250# test and build binaries
254251test-win-dev :
255252 << : *test-win
256253 variables :
257- R_VERSION : " $R_DEV_VERSION"
258254 R_BIN : " $R_DEV_WIN_BIN"
259- RTOOLS_BIN : " $RTOOLS_DEV_BIN "
255+ RTOOLS_VERSION : " $R_REL_VERSION "
260256
261257# # R-oldrel on Windows
262258# test and build binaries
263259test-win-old :
264260 << : *test-win
265261 variables :
266- R_VERSION : " $R_OLD_VERSION"
267262 R_BIN : " $R_OLD_WIN_BIN"
268- RTOOLS_BIN : " $RTOOLS_OLD_BIN "
263+ RTOOLS_VERSION : " $R_OLD_VERSION "
269264
270265.test-mac-template : &test-mac
271266 << : *test
0 commit comments