Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Produce output to prevent 10min timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
knm3000 committed Nov 11, 2019
1 parent 17dbe1f commit ec93e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conda-recipes/mxnet-feedstock/ci_support/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
# make the build number clobber
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"

while :;do echo -n .;sleep 1;done & # Generate the output to prevent the timeout error
trap "kill $!" EXIT # Die with parent if we die prematurely
conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
--clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"
kill $! && trap " " EXIT # Kill the while loop and unset the trap

if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
Expand Down

0 comments on commit ec93e43

Please sign in to comment.