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
d48ade1f
"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "9c386db16625f763ad89f73a25b9aeb0e3cd7e7f"
Unverified
Commit
d48ade1f
authored
May 31, 2023
by
James Lamb
Committed by
GitHub
May 31, 2023
Browse files
[ci] use an MRAN snapshot for R 3.6 Linux jobs (fixes #5898) (#5903)
parent
4536f435
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
.ci/test_r_package.sh
.ci/test_r_package.sh
+5
-1
.ci/test_windows.ps1
.ci/test_windows.ps1
+6
-0
No files found.
.ci/test_r_package.sh
View file @
d48ade1f
...
@@ -120,8 +120,12 @@ fi
...
@@ -120,8 +120,12 @@ fi
# fix for issue where CRAN was not returning {lattice} when using R 3.6
# fix for issue where CRAN was not returning {lattice} when using R 3.6
# "Warning: dependency ‘lattice’ is not available"
# "Warning: dependency ‘lattice’ is not available"
#
# refs for that MRAN snapshot:
# * https://cran.r-project.org/web/packages/checkpoint/readme/README.html
# * https://help.codeocean.com/en/articles/3087704-using-mran-snapshots-to-install-archived-r-packages
if
[[
"
${
R_MAJOR_VERSION
}
"
==
"3"
]]
;
then
if
[[
"
${
R_MAJOR_VERSION
}
"
==
"3"
]]
;
then
Rscript
--vanilla
-e
"install.packages('lattice', repos = 'https://
m
ran.microsoft.com', lib = '
${
R_LIB_PATH
}
')"
Rscript
--vanilla
-e
"install.packages('lattice', repos = 'https://
c
ran.microsoft.com
/snapshot/2020-04-23/
', lib = '
${
R_LIB_PATH
}
')"
fi
fi
# Manually install Depends and Imports libraries + 'knitr', 'RhpcBLASctl', 'rmarkdown', 'testthat'
# Manually install Depends and Imports libraries + 'knitr', 'RhpcBLASctl', 'rmarkdown', 'testthat'
...
...
.ci/test_windows.ps1
View file @
d48ade1f
...
@@ -44,6 +44,12 @@ if ($env:TASK -eq "swig") {
...
@@ -44,6 +44,12 @@ if ($env:TASK -eq "swig") {
conda
init
powershell
conda
init
powershell
conda
activate
conda
activate
conda
config
--set
always_yes
yes
--set
changeps1
no
conda
config
--set
always_yes
yes
--set
changeps1
no
# ref:
# * https://stackoverflow.com/a/62897729/3986677
# * https://github.com/microsoft/LightGBM/issues/5899
conda
install
brotlipy
conda
update
-q
-y
conda
conda
update
-q
-y
conda
conda
create
-q
-y
-n
$
env
:
CONDA_ENV
`
conda
create
-q
-y
-n
$
env
:
CONDA_ENV
`
cloudpickle
`
cloudpickle
`
...
...
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