Skip to content

Commit

Permalink
Fix for 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 019352f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/includes/website.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ site-static-preview:
site-deploy-preview: site-static-preview
$(MAKE) site-deploy SERVICE=preview

hugo-test:
$(MAKE) site-static-preview
hugo-test: 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 019352f

Please sign in to comment.