Skip to content

Commit

Permalink
Try setting a timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 20, 2023
1 parent 3a9faae commit 38d2dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ echo "RemoteSha: ${2}" >> "${PKGDIR}/DESCRIPTION"
fi

# Build source package. Try vignettes, but build without otherwise.
# R is weird like that, it should be possible to build the package even if there is a documentation bug.
# We set a timeout such that the workflow can post a 'failure' instead of timing out in CI.
#mv ${REPO}/.git tmpgit
echo "::group::R CMD build"
if ! R_TEXI2DVICMD=emulation PDFLATEX=pdftinytex R_TESTS="/tmp/vignettehack.R" R --no-init-file CMD build ${PKGDIR} --no-manual ${BUILD_ARGS} 1> >(tee stderr_build.log); then
if ! R_TEXI2DVICMD=emulation PDFLATEX=pdftinytex R_TESTS="/tmp/vignettehack.R" timeout 3600 R --no-init-file CMD build ${PKGDIR} --no-manual ${BUILD_ARGS} 1> >(tee stderr_build.log); then
VIGNETTE_FAILURE=1
echo "::endgroup::"
echo "::group::R CMD build (trying without vignettes)"
Expand Down

0 comments on commit 38d2dee

Please sign in to comment.