From c3a697c483fcc45b104981e5caada63abda8c066 Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Sun, 27 Dec 2020 03:10:11 -0500 Subject: [PATCH] update tests --- .semaphore/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.semaphore/tests.yml b/.semaphore/tests.yml index 578e4c0..36bc0c0 100644 --- a/.semaphore/tests.yml +++ b/.semaphore/tests.yml @@ -15,7 +15,7 @@ blocks: - artifact pull workflow postal-alpine-container.tar - docker load -i postal-alpine-container.tar - docker-compose up -d - - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; else sleep 15; fi; done; + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; elif [[ $i -eq 20 ]]; then exit 1; else sleep 15; fi; done; - artifact yank workflow postal-alpine-container.tar - name: 'Ubuntu Test' commands: @@ -24,5 +24,5 @@ blocks: - artifact pull workflow postal-ubuntu-container.tar - docker load -i postal-ubuntu-container.tar - docker-compose up -d - - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; else sleep 15; fi; done; + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; elif [[ $i -eq 20 ]]; then exit 1; else sleep 15; fi; done; - artifact yank workflow postal-ubuntu-container.tar