From ea0c0f8350fc48878886d331a95f1159f7d27833 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 13 Apr 2020 13:53:16 +0200 Subject: [PATCH] smoke-test docker images after building --- release/cibuild.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/release/cibuild.py b/release/cibuild.py index 2873a0520..85a003f50 100755 --- a/release/cibuild.py +++ b/release/cibuild.py @@ -356,6 +356,20 @@ def build_docker_image(be: BuildEnviron): # pragma: no cover "--file", "release/docker/Dockerfile", "." ]) + # smoke-test the newly built docker image + r = subprocess.run([ + "docker", + "run", + "--rm", + "--it", + "mitmproxy/mitmproxy:" + be.docker_tag, + "mitmproxy", + "--version", + ], check=True) + assert "Mitmproxy: " + be.version in r.stdout.decode() + assert "Python: " in r.stdout.decode() + assert "OpenSSL: " in r.stdout.decode() + assert "Platform: " in r.stdout.decode() def build_pyinstaller(be: BuildEnviron): # pragma: no cover