commit 903dce08ca9a46378ea64628e10b4d83ceb03e87 Author: Simon Sapin Date: Thu Aug 16 17:01:24 2018 +0200 Initial attempt at scheduling a task on push diff --git a/.taskcluster.yml b/.taskcluster.yml new file mode 100644 index 00000000000..d7ea84d0312 --- /dev/null +++ b/.taskcluster.yml @@ -0,0 +1,36 @@ +version: 1 +policy: + # https://docs.taskcluster.net/docs/reference/integrations/taskcluster-github/docs/taskcluster-yml-v1#pull-requests + pullRequests: collaborators +tasks: + - $if: 'tasks_for == "github-push"' + provisionerId: aws-provisioner-v1 + workerType: github-worker + created: {$fromNow: ''} + deadline: {$fromNow: '1 hour'} + metadata: + name: "Taskcluster experiments for Servo" + description: "Initial task" + owner: ${event.pull_request.user.login}@users.noreply.github.com + source: ${event.compare} + + routes: + - "index.servo.taskcluster-experiments" + + payload: + maxRunTime: 600 + image: "node:8" + env: + DEBUG: "* -mocha* -nock* -express* -body-parser* -eslint*" + features: + taskclusterProxy: true + command: + - /bin/bash + - '--login' + - '-c' + - >- + git clone ${event.pull_request.head.repo.clone_url} repo && + cd repo && + git checkout ${event.push.after} && + echo "Hello World!" && + ls