-
Notifications
You must be signed in to change notification settings - Fork 11
/
.taskcluster.yml
46 lines (46 loc) · 1.46 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
35
36
37
38
39
40
41
42
43
44
45
46
version: 1
policy:
pullRequests: public
tasks:
$if: 'tasks_for in ["github-push", "github-pull-request"]'
then:
$let:
run:
$if: 'tasks_for == "github-push"'
then: true
else: {$eval: 'event.action in ["opened", "reopened", "synchronize"]'}
repo_url:
$if: 'tasks_for == "github-push"'
then: ${event.repository.clone_url}
else: ${event.pull_request.head.repo.clone_url}
ref:
$if: 'tasks_for == "github-push"'
then: ${event.after}
else: ${event.pull_request.head.sha}
in:
- $if: run
then:
provisionerId: 'proj-taskcluster'
workerType: 'ci'
deadline: {$fromNow: '1 hour'}
expires: {$fromNow: '1 day'}
payload:
maxRunTime: 3600
image: djmitche/rust-hawk-test:1.82.0@sha256:994e821f02633e19d51599c606c67c7c7714e933803a3388c5e6d39f2935c7cb
command:
- /bin/bash
- '-c'
- >-
git clone ${repo_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${ref} &&
cargo test --features="use_ring" --no-default-features &&
cargo test --features="use_openssl" --no-default-features &&
cargo fmt -- --check &&
cargo clippy
metadata:
name: Tests
description: Run tests
owner: [email protected]
source: ${repo_url}