-
Notifications
You must be signed in to change notification settings - Fork 20
/
.taskcluster.yml
34 lines (34 loc) · 1.21 KB
/
.taskcluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: 1
reporting: checks-v1
policy:
pullRequests: public
tasks:
- $if: '(tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"])'
then:
taskId: {$eval: as_slugid("toc-test")}
created: {$fromNow: ''}
deadline: {$fromNow: '2 hours'}
provisionerId: proj-taskcluster
workerType: ci
payload:
maxRunTime: 600
image: python:3
command:
- /bin/bash
- '-c'
- >-
git clone ${event.pull_request.head.repo.clone_url} taskcluster-rfcs &&
cd taskcluster-rfcs &&
git config advice.detachedHead false &&
git checkout ${event.pull_request.head.sha} &&
python maketoc.py &&
if ! output=$(git status --porcelain) || [ -n "$output" ]; then
echo "*** 'python maketoc.py' produced changes to the repository; these changes should be checked in ***";
git --no-pager diff;
exit 1;
fi
metadata:
name: taskcluster-rfcs-toc-test
description: checks that RFCS table of contents is updated
owner: [email protected]
source: ${event.repository.url}