ci: [refactor] Rename CIRRUS_PR env var to LINT_CI_IS_PR
The CIRRUS_PR env var was cirrus-specific and using a provider-agnostic name makes more sense. Also, enable pipefail, while touching this file. This refactor is needed for the next commit.
This commit is contained in:
2 files changed
+11
-9
No files matched your search
@@ -35,13 +35,15 @@ def main():
|
||||
time.sleep(3)
|
||||
run(build_cmd)
|
||||
|
||||
CIRRUS_PR_FLAG = []
|
||||
if os.environ.get("GITHUB_EVENT_NAME") == "pull_request":
|
||||
CIRRUS_PR_FLAG = ["-e", "CIRRUS_PR=1"]
|
||||
extra_env = []
|
||||
if os.environ["GITHUB_EVENT_NAME"] == "pull_request":
|
||||
extra_env = ["--env", "LINT_CI_IS_PR=1"]
|
||||
|
||||
run([
|
||||
"docker", "run", "--rm",
|
||||
*CIRRUS_PR_FLAG,
|
||||
"docker",
|
||||
"run",
|
||||
"--rm",
|
||||
*extra_env,
|
||||
f"--volume={os.getcwd()}:/bitcoin",
|
||||
CONTAINER_NAME,
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user