aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-05-25 12:42:59 +1200
committerAldo Cortesi <aldo@nullcube.com>2018-05-25 12:46:56 +1200
commitb6e1c4bb9d61a33e272ad9a755337c30ca7548df (patch)
treea7ad4f5981a9a96b55a95b18eb858b1c0dd4a733 /test
parentff92962c51c548519384ed80c5b7d60d5350f176 (diff)
downloadmitmproxy-b6e1c4bb9d61a33e272ad9a755337c30ca7548df.tar.gz
mitmproxy-b6e1c4bb9d61a33e272ad9a755337c30ca7548df.tar.bz2
mitmproxy-b6e1c4bb9d61a33e272ad9a755337c30ca7548df.zip
cibuild: tweak docker tag, only upload prod builds to pypi
Diffstat (limited to 'test')
-rw-r--r--test/release/test_cibuild.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/release/test_cibuild.py b/test/release/test_cibuild.py
index 596300aa..78ddf998 100644
--- a/test/release/test_cibuild.py
+++ b/test/release/test_cibuild.py
@@ -74,7 +74,7 @@ def test_buildenviron_commit():
docker_username = "foo",
docker_password = "bar",
)
- assert be.docker_tag == "dev"
+ assert be.docker_tag == "mitmproxy/mitmproxy:dev"
assert be.should_upload_docker
assert not be.should_upload_pypi
assert be.should_upload_docker
@@ -101,11 +101,12 @@ def test_buildenviron_rleasetag():
assert be.branch == "v0.x"
assert be.version == "0.0.1"
assert be.upload_dir == "0.0.1"
- assert be.docker_tag == "0.0.1"
+ assert be.docker_tag == "mitmproxy/mitmproxy:0.0.1"
assert be.should_upload_pypi
assert be.should_upload_docker
assert be.is_prod_release
+
def test_buildenviron_branch():
# Simulates a development branch on the main repo
be = cibuild.BuildEnviron(