Skip to content

Commit

Permalink
[ci] fix R CMD CHECK note about example timings (fixes #4049)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Mar 9, 2021
1 parent 3a5e3c0 commit a6a2d6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ci/test_r_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export _R_CHECK_CRAN_INCOMING_REMOTE_=0
# to catch extreme problems
export _R_CHECK_PKG_SIZES_THRESHOLD_=60

# don't fail builds for long-running examples unless they're very long
# See https://github.com/microsoft/LightGBM/issues/4049#issuecomment-793412254.
if [[ $R_BUILD_TYPE != "cran" ]]; then
export _R_CHECK_EXAMPLE_TIMING_THRESHOLD_=30
fi

# Get details needed for installing R components
R_MAJOR_VERSION=( ${R_VERSION//./ } )
if [[ "${R_MAJOR_VERSION}" == "3" ]]; then
Expand Down
6 changes: 6 additions & 0 deletions .ci/test_r_package_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ $env:_R_CHECK_CRAN_INCOMING_REMOTE_ = 0
# to catch extreme problems
$env:_R_CHECK_PKG_SIZES_THRESHOLD_ = 60

# don't fail builds for long-running examples unless they're very long
# See https://github.com/microsoft/LightGBM/issues/4049#issuecomment-793412254.
if ($env:R_BUILD_TYPE -eq "cran") {
$env:_R_CHECK_EXAMPLE_TIMING_THRESHOLD_ = 30
}

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"
Expand Down

0 comments on commit a6a2d6c

Please sign in to comment.