diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2018-05-24 22:15:55 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2018-05-24 22:18:01 +1200 |
commit | c91b511bc7cca6a04237d30db1845ddc232aff64 (patch) | |
tree | d4b6bfacb8654f5e5c2bb58faf658b3c27bf2ac0 /test | |
parent | 0afff3a952e85401c41efc0e157ab07d3b985061 (diff) | |
download | mitmproxy-c91b511bc7cca6a04237d30db1845ddc232aff64.tar.gz mitmproxy-c91b511bc7cca6a04237d30db1845ddc232aff64.tar.bz2 mitmproxy-c91b511bc7cca6a04237d30db1845ddc232aff64.zip |
cibuild: extract upload conditions
Diffstat (limited to 'test')
-rw-r--r-- | test/release/test_cibuild.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/release/test_cibuild.py b/test/release/test_cibuild.py index a60f101f..2df5b4a0 100644 --- a/test/release/test_cibuild.py +++ b/test/release/test_cibuild.py @@ -59,21 +59,28 @@ def test_buildenviron_commit(): travis_pull_request = "false", ) assert be.docker_tag == "dev" + assert be.should_upload_docker + assert not be.should_upload_pypi -def test_buildenviron_tag(): +def test_buildenviron_rleasetag(): be = cibuild.BuildEnviron( system = "Linux", root_dir = "/foo", travis_tag = "v0.0.1", travis_branch = "v0.x", + should_build_wheel = True, + should_build_docker = True, + should_build_pyinstaller = True, + has_twine_creds = True, ) assert be.tag == "v0.0.1" 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.should_upload_pypi def test_buildenviron_branch(): |