Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
87e3c0d9
Unverified
Commit
87e3c0d9
authored
Dec 06, 2022
by
James Lamb
Committed by
GitHub
Dec 06, 2022
Browse files
[ci] test against R 4.2.2 (#5621)
parent
f0cfbff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
.ci/test_r_package.sh
.ci/test_r_package.sh
+5
-4
.ci/test_r_package_windows.ps1
.ci/test_r_package_windows.ps1
+1
-1
No files found.
.ci/test_r_package.sh
View file @
87e3c0d9
...
@@ -21,9 +21,9 @@ if [[ "${R_MAJOR_VERSION}" == "3" ]]; then
...
@@ -21,9 +21,9 @@ if [[ "${R_MAJOR_VERSION}" == "3" ]]; then
export
R_LINUX_VERSION
=
"3.6.3-1bionic"
export
R_LINUX_VERSION
=
"3.6.3-1bionic"
export
R_APT_REPO
=
"bionic-cran35/"
export
R_APT_REPO
=
"bionic-cran35/"
elif
[[
"
${
R_MAJOR_VERSION
}
"
==
"4"
]]
;
then
elif
[[
"
${
R_MAJOR_VERSION
}
"
==
"4"
]]
;
then
export
R_MAC_VERSION
=
4.2.
1
export
R_MAC_VERSION
=
4.2.
2
export
R_MAC_PKG_URL
=
${
CRAN_MIRROR
}
/bin/macosx/base/R-
${
R_MAC_VERSION
}
.pkg
export
R_MAC_PKG_URL
=
${
CRAN_MIRROR
}
/bin/macosx/base/R-
${
R_MAC_VERSION
}
.pkg
export
R_LINUX_VERSION
=
"4.2.
1
-1.2004.0"
export
R_LINUX_VERSION
=
"4.2.
2
-1.2004.0"
export
R_APT_REPO
=
"focal-cran40/"
export
R_APT_REPO
=
"focal-cran40/"
else
else
echo
"Unrecognized R version:
${
R_VERSION
}
"
echo
"Unrecognized R version:
${
R_VERSION
}
"
...
@@ -76,7 +76,7 @@ if [[ $OS_NAME == "macos" ]]; then
...
@@ -76,7 +76,7 @@ if [[ $OS_NAME == "macos" ]]; then
brew
install
--cask
basictex
||
exit
-1
brew
install
--cask
basictex
||
exit
-1
export
PATH
=
"/Library/TeX/texbin:
$PATH
"
export
PATH
=
"/Library/TeX/texbin:
$PATH
"
sudo
tlmgr
--verify-repo
=
none update
--self
||
exit
-1
sudo
tlmgr
--verify-repo
=
none update
--self
||
exit
-1
sudo
tlmgr
--verify-repo
=
none
install
inconsolata helvetic
||
exit
-1
sudo
tlmgr
--verify-repo
=
none
install
inconsolata helvetic
rsfs
||
exit
-1
curl
-sL
${
R_MAC_PKG_URL
}
-o
R.pkg
||
exit
-1
curl
-sL
${
R_MAC_PKG_URL
}
-o
R.pkg
||
exit
-1
sudo
installer
\
sudo
installer
\
...
@@ -163,11 +163,12 @@ elif [[ $R_BUILD_TYPE == "cran" ]]; then
...
@@ -163,11 +163,12 @@ elif [[ $R_BUILD_TYPE == "cran" ]]; then
||
(
cat
${
RCHK_LOG_FILE
}
&&
exit
-1
)
||
(
cat
${
RCHK_LOG_FILE
}
&&
exit
-1
)
cat
${
RCHK_LOG_FILE
}
cat
${
RCHK_LOG_FILE
}
# the exception below
is
from R itself and not LightGBM:
# the exception
s
below
are
from R itself and not LightGBM:
# https://github.com/kalibera/rchk/issues/22#issuecomment-656036156
# https://github.com/kalibera/rchk/issues/22#issuecomment-656036156
exit
$(
exit
$(
cat
${
RCHK_LOG_FILE
}
\
cat
${
RCHK_LOG_FILE
}
\
|
grep
-v
"in function strptime_internal"
\
|
grep
-v
"in function strptime_internal"
\
|
grep
-v
"in function RunGenCollect"
\
|
grep
--count
-E
'\[PB\]|ERROR'
|
grep
--count
-E
'\[PB\]|ERROR'
)
)
fi
fi
...
...
.ci/test_r_package_windows.ps1
View file @
87e3c0d9
...
@@ -80,7 +80,7 @@ if ($env:R_MAJOR_VERSION -eq "3") {
...
@@ -80,7 +80,7 @@ if ($env:R_MAJOR_VERSION -eq "3") {
$
env
:
RTOOLS_BIN
=
"
$RTOOLS_INSTALL_PATH
\usr\bin"
$
env
:
RTOOLS_BIN
=
"
$RTOOLS_INSTALL_PATH
\usr\bin"
$
env
:
RTOOLS_MINGW_BIN
=
"
$RTOOLS_INSTALL_PATH
\x86_64-w64-mingw32.static.posix\bin"
$
env
:
RTOOLS_MINGW_BIN
=
"
$RTOOLS_INSTALL_PATH
\x86_64-w64-mingw32.static.posix\bin"
$
env
:
RTOOLS_EXE_FILE
=
"rtools42-5253-5107.exe"
$
env
:
RTOOLS_EXE_FILE
=
"rtools42-5253-5107.exe"
$
env
:
R_WINDOWS_VERSION
=
"4.2.
1
"
$
env
:
R_WINDOWS_VERSION
=
"4.2.
2
"
}
else
{
}
else
{
Write-Output
"[ERROR] Unrecognized R version:
$
env
:
R_VERSION
"
Write-Output
"[ERROR] Unrecognized R version:
$
env
:
R_VERSION
"
Check-Output
$false
Check-Output
$false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment