mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Taskcluster: Add support for trychoosers
This commit is contained in:
parent
8588e928e7
commit
e7b493df18
2 changed files with 70 additions and 30 deletions
|
@ -32,7 +32,7 @@ class Index:
|
|||
__init__ = insertTask = lambda *_, **__: None
|
||||
|
||||
def findTask(self, path):
|
||||
if ".docs." in path:
|
||||
if decision_task.CONFIG.git_ref == "refs/heads/master":
|
||||
return {"taskId": ""}
|
||||
raise TaskclusterRestFailure
|
||||
|
||||
|
@ -47,14 +47,19 @@ os.environ["GIT_REF"] = "refs/heads/auto"
|
|||
import decision_task
|
||||
|
||||
print("\n# Push:")
|
||||
decision_task.main("github-push", mock=True)
|
||||
decision_task.main("github-push")
|
||||
|
||||
print("\n# Push with hot caches:")
|
||||
decision_task.main("github-push", mock=True)
|
||||
decision_task.main("github-push")
|
||||
|
||||
print("\n# Mocked only:")
|
||||
decision_task.mocked_only()
|
||||
|
||||
print("\n# Push to master:")
|
||||
decision_task.CONFIG.git_ref = "refs/heads/master"
|
||||
decision_task.main("github-push", mock=True)
|
||||
decision_task.main("github-push")
|
||||
|
||||
print("\n# Daily:")
|
||||
decision_task.main("daily", mock=True)
|
||||
decision_task.main("daily")
|
||||
|
||||
print()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue