Skip to content

Commit 9b48160

Browse files
authored
Merge branch 'master' into hindi_n
2 parents 7866f66 + 058dd4d commit 9b48160

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2923
stages:
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:
245243
test-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
254251
test-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
263259
test-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

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@
6868
# docs
6969
/man/openmp-utils.Rd @Anirban166
7070
/Seal_of_Approval.md @tdhock
71+
72+
# GLCI
73+
.gitlab-ci.yml @jangorecki @ben-schwen

inst/tests/tests.Rraw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18768,7 +18768,7 @@ if (test_bit64) local({
1876818768
# non-ASCII plain symbol in by, #4708
1876918769
# NB: recall we can't use non-ASCII symbols in the test script. The text is a-<n-tilde>-o (year in Spanish)
1877018770
native_ano = iconv("a\U00F1o", "UTF-8", "")
18771-
if (!is.na(native_ano)) { # #6339: symbol must be represented in native encoding
18771+
if (identical(native_ano, "a\U00F1o")) { # #6339: symbol must be represented in native encoding
1877218772
DT = data.table(a = rep(1:3, 2))
1877318773
setnames(DT, "a", native_ano)
1877418774
test(2266, eval(parse(text=sprintf("DT[ , .N, %s]$N[1L]", native_ano))), 2L)

0 commit comments

Comments
 (0)