"...git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "f8e8403b858d11f3d2102e66c06178ab204fd3d6"
Unverified Commit 58a482f4 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] [ci] Fix CI timeouts for Mac builds on Travis (fixes #3091) (#3092)



* [R-package] use processx to speed up builds

* different fix

* echoing more frequently

* fix it

* more stdout

* use print() instead of message()

* shell tricks

* fix message

* travis

* Update .ci/test_r_package.sh
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
parent 0e3509cb
...@@ -82,9 +82,21 @@ export _R_CHECK_FORCE_SUGGESTS_=0 ...@@ -82,9 +82,21 @@ export _R_CHECK_FORCE_SUGGESTS_=0
# fails tests if either ERRORs or WARNINGs are thrown by # fails tests if either ERRORs or WARNINGs are thrown by
# R CMD CHECK # R CMD CHECK
check_succeeded="yes" check_succeeded="yes"
R CMD check ${PKG_TARBALL} \ (
--as-cran \ R CMD check ${PKG_TARBALL} \
|| check_succeeded="no" --as-cran \
|| 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
echo "R CMD check build logs:" echo "R CMD check build logs:"
cat ${BUILD_DIRECTORY}/lightgbm.Rcheck/00install.out cat ${BUILD_DIRECTORY}/lightgbm.Rcheck/00install.out
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment