From 83d2d2db140630c422cfcf9aeb6841574cdac053 Mon Sep 17 00:00:00 2001 From: Galimede Date: Mon, 2 Nov 2020 16:28:03 +0100 Subject: [PATCH] add dockerize wait for psql --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b8d765e..c69b6af 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,7 +39,11 @@ jobs: - checkout - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} + - run: + name: Waiting for POSTGRES + command: dockerize -wait tcp://localhost:5432 -timeout 1m - run: + name: Launching e2e test command: yarn test:e2e environment: DATABASE_URL: "postgres://e2e@localhost:5432/psdb"