Move project-specific stuff out of decisionlib

This commit is contained in:
Simon Sapin 2018-09-13 16:52:05 +02:00
parent e566906bef
commit 46ed832b21
2 changed files with 54 additions and 41 deletions

View file

@ -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()