mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
if-then
This commit is contained in:
parent
903dce08ca
commit
73d9baf9fa
1 changed files with 29 additions and 28 deletions
|
@ -4,33 +4,34 @@ policy:
|
||||||
pullRequests: collaborators
|
pullRequests: collaborators
|
||||||
tasks:
|
tasks:
|
||||||
- $if: 'tasks_for == "github-push"'
|
- $if: 'tasks_for == "github-push"'
|
||||||
provisionerId: aws-provisioner-v1
|
then:
|
||||||
workerType: github-worker
|
provisionerId: aws-provisioner-v1
|
||||||
created: {$fromNow: ''}
|
workerType: github-worker
|
||||||
deadline: {$fromNow: '1 hour'}
|
created: {$fromNow: ''}
|
||||||
metadata:
|
deadline: {$fromNow: '1 hour'}
|
||||||
name: "Taskcluster experiments for Servo"
|
metadata:
|
||||||
description: "Initial task"
|
name: "Taskcluster experiments for Servo"
|
||||||
owner: ${event.pull_request.user.login}@users.noreply.github.com
|
description: "Initial task"
|
||||||
source: ${event.compare}
|
owner: ${event.pull_request.user.login}@users.noreply.github.com
|
||||||
|
source: ${event.compare}
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
- "index.servo.taskcluster-experiments"
|
- "index.servo.taskcluster-experiments"
|
||||||
|
|
||||||
payload:
|
payload:
|
||||||
maxRunTime: 600
|
maxRunTime: 600
|
||||||
image: "node:8"
|
image: "node:8"
|
||||||
env:
|
env:
|
||||||
DEBUG: "* -mocha* -nock* -express* -body-parser* -eslint*"
|
DEBUG: "* -mocha* -nock* -express* -body-parser* -eslint*"
|
||||||
features:
|
features:
|
||||||
taskclusterProxy: true
|
taskclusterProxy: true
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- '--login'
|
- '--login'
|
||||||
- '-c'
|
- '-c'
|
||||||
- >-
|
- >-
|
||||||
git clone ${event.pull_request.head.repo.clone_url} repo &&
|
git clone ${event.pull_request.head.repo.clone_url} repo &&
|
||||||
cd repo &&
|
cd repo &&
|
||||||
git checkout ${event.push.after} &&
|
git checkout ${event.push.after} &&
|
||||||
echo "Hello World!" &&
|
echo "Hello World!" &&
|
||||||
ls
|
ls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue