Skip to content

Commit

Permalink
[ci] added echoing of R CMD check logs to CI (#3009)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Apr 23, 2020
1 parent b013af0 commit 02a0089
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .ci/test_r_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,17 @@ export _R_CHECK_FORCE_SUGGESTS_=0

# fails tests if either ERRORs or WARNINGs are thrown by
# R CMD CHECK
check_succeeded="yes"
R CMD check ${PKG_TARBALL} \
--as-cran \
|| exit -1
|| check_succeeded="no"

echo "R CMD check build logs:"
cat ${BUILD_DIRECTORY}/lightgbm.Rcheck/00install.out

if [[ $check_succeeded == "no" ]]; then
exit -1
fi

if grep -q -R "WARNING" "$LOG_FILE_NAME"; then
echo "WARNINGS have been found by R CMD check!"
Expand Down

0 comments on commit 02a0089

Please sign in to comment.