mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 02:57:19 +00:00
cibuild: more accurate PR test, better dump output
This commit is contained in:
parent
e9b19dba8a
commit
fdf0d9974e
@ -210,16 +210,25 @@ class BuildEnviron:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def dump_info(self, fp=sys.stdout):
|
def dump_info(self, fp=sys.stdout):
|
||||||
print("BUILD PLATFORM_TAG=%s" % self.platform_tag, file=fp)
|
lst = [
|
||||||
print("BUILD ROOT_DIR=%s" % self.root_dir, file=fp)
|
"version",
|
||||||
print("BUILD RELEASE_DIR=%s" % self.release_dir, file=fp)
|
"tag",
|
||||||
print("BUILD BUILD_DIR=%s" % self.build_dir, file=fp)
|
"branch",
|
||||||
print("BUILD DIST_DIR=%s" % self.dist_dir, file=fp)
|
"platform_tag",
|
||||||
print("BUILD BDISTS=%s" % self.bdists, file=fp)
|
"root_dir",
|
||||||
print("BUILD TAG=%s" % self.tag, file=fp)
|
"release_dir",
|
||||||
print("BUILD BRANCH=%s" % self.branch, file=fp)
|
"build_dir",
|
||||||
print("BUILD VERSION=%s" % self.version, file=fp)
|
"dist_dir",
|
||||||
print("BUILD UPLOAD_DIR=%s" % self.upload_dir, file=fp)
|
"bdists",
|
||||||
|
"upload_dir",
|
||||||
|
"should_build_wheel",
|
||||||
|
"should_build_pyinstaller",
|
||||||
|
"should_build_docker",
|
||||||
|
"should_upload_docker",
|
||||||
|
"should_upload_pypi",
|
||||||
|
]
|
||||||
|
for attr in lst:
|
||||||
|
print("cibuild.%s=%s" % (attr, getattr(self, attr)), file=fp)
|
||||||
|
|
||||||
|
|
||||||
def build_wheel(be: BuildEnviron): # pragma: no cover
|
def build_wheel(be: BuildEnviron): # pragma: no cover
|
||||||
|
@ -43,8 +43,8 @@ def test_buildenviron_pr():
|
|||||||
# Simulates a PR. We build everything, but don't have access to secret
|
# Simulates a PR. We build everything, but don't have access to secret
|
||||||
# credential env variables.
|
# credential env variables.
|
||||||
be = cibuild.BuildEnviron(
|
be = cibuild.BuildEnviron(
|
||||||
travis_tag = "v0.0.1",
|
travis_tag = "",
|
||||||
travis_branch = "v0.x",
|
travis_branch = "master",
|
||||||
travis_pull_request = "true",
|
travis_pull_request = "true",
|
||||||
|
|
||||||
should_build_wheel = True,
|
should_build_wheel = True,
|
||||||
|
Loading…
Reference in New Issue
Block a user