mirror of
https://github.com/servo/servo.git
synced 2025-07-04 05:53:39 +01:00
Move project-specific stuff out of decisionlib
This commit is contained in:
parent
e566906bef
commit
46ed832b21
2 changed files with 54 additions and 41 deletions
|
@ -1,15 +1,19 @@
|
|||
# coding: utf8
|
||||
|
||||
import os.path
|
||||
from decisionlib import DecisionTask
|
||||
|
||||
|
||||
def main():
|
||||
decision = DecisionTask()
|
||||
decision = DecisionTask(
|
||||
project_name="Taskcluster experimenfts for Servo", # Used in task names
|
||||
docker_image_cache_expiry="1 week",
|
||||
)
|
||||
|
||||
build_task = decision.create_task_with_in_tree_dockerfile(
|
||||
task_name="build task",
|
||||
command="./build-task.sh",
|
||||
image="servo-x86_64-linux",
|
||||
dockerfile=dockerfile("servo-x86_64-linux"),
|
||||
max_run_time_minutes=20,
|
||||
|
||||
artifacts=[
|
||||
|
@ -37,5 +41,9 @@ def main():
|
|||
)
|
||||
|
||||
|
||||
def dockerfile(name):
|
||||
return os.path.join(os.path.dirname(__file__), name + ".dockerfile")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue