Skip to content

Commit

Permalink
Try and fix htmltest retry
Browse files Browse the repository at this point in the history
  • Loading branch information
markmandel committed May 20, 2020
1 parent a6ac852 commit d183884
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/includes/website.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ site-deploy-preview: site-static-preview
hugo-test:
$(MAKE) site-static-preview
for i in {1..5}; \
do docker run --rm -t -e "TERM=xterm-256color" $(common_mounts) $(DOCKER_RUN_ARGS) $(build_tag) bash -c \
do echo "Html Test: Attempt $$i" && \
docker run --rm -t -e "TERM=xterm-256color" $(common_mounts) $(DOCKER_RUN_ARGS) $(build_tag) bash -c \
"mkdir -p /tmp/website && cp -r $(mount_path)/site/public /tmp/website/site && htmltest -c $(mount_path)/site/htmltest.yaml /tmp/website" && \
break || (echo "retrying..." && sleep 60); done
break || sleep 60; done

site-test:
# generate actual html and run test against - provides a more accurate tests
Expand Down

0 comments on commit d183884

Please sign in to comment.