ci: bypass docker compose stop failure

docker compose stop without starting the project
results in failure. Bypass the exception for
docker compose stop
This commit is contained in:
Revant Nandgaonkar 2022-05-01 19:51:11 +05:30
parent ed5311473c
commit 233fc47b51

View file

@ -46,7 +46,11 @@ class Compose:
self("exec", "-T", *cmd) self("exec", "-T", *cmd)
def stop(self) -> None: def stop(self) -> None:
try:
subprocess.check_call(self.base_cmd + ("down", "-v", "--remove-orphans")) subprocess.check_call(self.base_cmd + ("down", "-v", "--remove-orphans"))
except subprocess.CalledProcessError as e:
print("docker compose stop command failed")
print(e)
def bench(self, *cmd: str) -> None: def bench(self, *cmd: str) -> None:
self.exec("backend", "bench", *cmd) self.exec("backend", "bench", *cmd)