From 1478c74581648ede6f1946ba3e61985a2929cd67 Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Sun, 27 Dec 2020 02:52:03 -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 7dc45e7..b21b029 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 [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done' + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; fi; sleep 15; 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 [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done' + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; fi; sleep 15; done; - artifact yank workflow postal-ubuntu-container.tar