Revision control

Other Tools

1
version: 1
2
policy:
3
pullRequests: public
4
tasks:
5
$if: 'tasks_for in ["github-push", "github-pull-request"]'
6
then:
7
$let:
8
repo_url:
9
$if: 'tasks_for == "github-push"'
10
then: ${event.repository.clone_url}
11
else: ${event.pull_request.head.repo.clone_url}
12
ref:
13
$if: 'tasks_for == "github-push"'
14
then: ${event.after}
15
else: ${event.pull_request.head.sha}
16
in:
17
- provisionerId: proj-misc
18
workerType: ci
19
deadline: ${fromNow('1 day')}
20
payload:
21
maxRunTime: 7200
22
image: piatra/asmochitests
23
command:
24
- /bin/bash
25
- '--login'
26
- '-c'
27
- >-
28
git clone ${repo_url} /activity-stream && cd /activity-stream &&
29
git checkout ${ref} && bash ./mochitest.sh
30
metadata:
31
name: activitystream
32
description: run mochitests for PRs
33
owner: noreply@mozilla.com
34
source: ${repo_url}