From 5d3e7883f14c23eb9b453463aaa5679930a0c0a0 Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Wed, 15 Dec 2021 08:32:17 +0300 Subject: [PATCH] Fix postgres CI test --- tests/compose.ci-postgres.yml | 3 +++ tests/main.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/compose.ci-postgres.yml diff --git a/tests/compose.ci-postgres.yml b/tests/compose.ci-postgres.yml new file mode 100644 index 00000000..d98a25cb --- /dev/null +++ b/tests/compose.ci-postgres.yml @@ -0,0 +1,3 @@ +services: + backend: + image: localhost:5000/frappe/frappe-worker:${FRAPPE_VERSION} diff --git a/tests/main.py b/tests/main.py index 036e6daf..57146a96 100644 --- a/tests/main.py +++ b/tests/main.py @@ -376,7 +376,10 @@ def check_erpnext_assets(): @log("Create containers with Postgres override") def create_containers_with_postgres_override(): - docker_compose("-f", "overrides/compose.postgres.yml", "up", "-d", "--quiet-pull") + args = ["-f", "overrides/compose.postgres.yml"] + if CI: + args.extend(("-f", "tests/compose.ci.postgres.yml")) + docker_compose(*args, "up", "-d", "--quiet-pull") @log("Create Postgres site")