Run a Python file

This commit is contained in:
Simon Sapin 2018-08-17 17:53:18 +02:00
parent 59b6e7b5b9
commit f559fcb5dc
2 changed files with 4 additions and 5 deletions

View file

@ -12,12 +12,12 @@ tasks:
metadata: metadata:
name: "Taskcluster experiments for Servo" name: "Taskcluster experiments for Servo"
description: "Initial task" description: "Initial task"
owner: ${event.pusher.email} owner: ${event.pusher.name}@users.noreply.github.com
source: ${event.compare} source: ${event.compare}
payload: payload:
maxRunTime: 600 maxRunTime: 600
image: "node:8" image: "buildpack-deps:bionic-scm"
features: features:
taskclusterProxy: true taskclusterProxy: true
command: command:
@ -28,6 +28,4 @@ tasks:
git clone ${event.repository.clone_url} repo && git clone ${event.repository.clone_url} repo &&
cd repo && cd repo &&
git checkout ${event.after} && git checkout ${event.after} &&
echo "Hello World!" && python2.7 task.py
sleep 120 &&
ls -a

1
task.py Normal file
View file

@ -0,0 +1 @@
print("Hello, World!")