mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
release: build snapshots for all branches on the main repo
This commit is contained in:
parent
380e4bc14d
commit
5cea2aacb2
@ -56,7 +56,6 @@ PYINSTALLER_DIST = join(BUILD_DIR, "binaries", PLATFORM_TAG)
|
|||||||
VENV_DIR = join(BUILD_DIR, "venv")
|
VENV_DIR = join(BUILD_DIR, "venv")
|
||||||
|
|
||||||
# Project Configuration
|
# Project Configuration
|
||||||
SNAPSHOT_BRANCHES = ["master", "updocs"]
|
|
||||||
VERSION_FILE = join(ROOT_DIR, "mitmproxy", "version.py")
|
VERSION_FILE = join(ROOT_DIR, "mitmproxy", "version.py")
|
||||||
BDISTS = {
|
BDISTS = {
|
||||||
"mitmproxy": ["mitmproxy", "mitmdump", "mitmweb"],
|
"mitmproxy": ["mitmproxy", "mitmdump", "mitmweb"],
|
||||||
@ -75,10 +74,10 @@ TAG = os.environ.get("TRAVIS_TAG", os.environ.get("APPVEYOR_REPO_TAG_NAME", None
|
|||||||
BRANCH = os.environ.get("TRAVIS_BRANCH", os.environ.get("APPVEYOR_REPO_BRANCH", None))
|
BRANCH = os.environ.get("TRAVIS_BRANCH", os.environ.get("APPVEYOR_REPO_BRANCH", None))
|
||||||
if TAG:
|
if TAG:
|
||||||
VERSION = TAG
|
VERSION = TAG
|
||||||
elif BRANCH in SNAPSHOT_BRANCHES:
|
elif BRANCH:
|
||||||
VERSION = BRANCH
|
VERSION = BRANCH
|
||||||
else:
|
else:
|
||||||
print("Branch %s is not build branch - exiting." % BRANCH)
|
print("Could not establish build name - exiting." % BRANCH)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user