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
0038a662
Unverified
Commit
0038a662
authored
Aug 29, 2020
by
James Lamb
Committed by
GitHub
Aug 29, 2020
Browse files
[ci] fix R CMD check issue 'unable to verify current time' (#3341)
parent
5538eb8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
.ci/test_r_package.sh
.ci/test_r_package.sh
+4
-0
.ci/test_r_package_windows.ps1
.ci/test_r_package_windows.ps1
+4
-0
No files found.
.ci/test_r_package.sh
View file @
0038a662
...
...
@@ -7,6 +7,10 @@ mkdir -p $R_LIB_PATH
export
R_LIBS
=
$R_LIB_PATH
export
PATH
=
"
$R_LIB_PATH
/R/bin:
$PATH
"
# hack to get around this:
# https://stat.ethz.ch/pipermail/r-package-devel/2020q3/005930.html
export
_R_CHECK_SYSTEM_CLOCK_
=
0
# Get details needed for installing R components
#
# NOTES:
...
...
.ci/test_r_package_windows.ps1
View file @
0038a662
...
...
@@ -74,6 +74,10 @@ $env:CTAN_MIRROR = "https://ctan.math.illinois.edu/systems/win32/miktex"
$
env
:
CTAN_MIKTEX_ARCHIVE
=
"
$
env
:
CTAN_MIRROR
/setup/windows-x64/"
$
env
:
CTAN_PACKAGE_ARCHIVE
=
"
$
env
:
CTAN_MIRROR
/tm/packages/"
# hack to get around this:
# https://stat.ethz.ch/pipermail/r-package-devel/2020q3/005930.html
$
env
:
_R_CHECK_SYSTEM_CLOCK_
=
0
if
((
$
env
:
COMPILER
-eq
"MINGW"
)
-and
(
$
env
:
R_BUILD_TYPE
-eq
"cmake"
))
{
$
env
:
CXX
=
"
$
env
:
RTOOLS_MINGW_BIN
/g++.exe"
$
env
:
CC
=
"
$
env
:
RTOOLS_MINGW_BIN
/gcc.exe"
...
...
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