Skip to content

Commit

Permalink
[ci] [R-package] run 'R CMD check' as a foreground task (#6508)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jul 4, 2024
1 parent 00d6edd commit 9a10b19
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .ci/test_r_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,22 +200,10 @@ fi
# fails tests if either ERRORs or WARNINGs are thrown by
# R CMD CHECK
check_succeeded="yes"
(
R CMD check ${PKG_TARBALL} \
--as-cran \
--run-donttest \
|| check_succeeded="no"
) &

# R CMD check suppresses output, some CIs kill builds after
# a few minutes with no output. This trick gives R CMD check more time
# * https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-169987525
# * https://stackoverflow.com/a/29890106/3986677
CHECK_PID=$!
while kill -0 ${CHECK_PID} >/dev/null 2>&1; do
echo -n -e " \b"
sleep 5
done
R CMD check ${PKG_TARBALL} \
--as-cran \
--run-donttest \
|| check_succeeded="no"

echo "R CMD check build logs:"
BUILD_LOG_FILE=lightgbm.Rcheck/00install.out
Expand Down

0 comments on commit 9a10b19

Please sign in to comment.