Skip to content

Commit

Permalink
Test rust-code-analysis-cli on mozilla-central
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Oct 26, 2020
1 parent 73a0931 commit 62b5c29
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tasks:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.repo.html_url}
else: ${event.repository.html_url}

in:
$if: 'tasks_for == "github-push" || (tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"])'
then:
Expand Down Expand Up @@ -53,6 +54,37 @@ tasks:
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- taskId: {$eval: as_slugid("test_mozilla_central")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: proj-relman
workerType: ci
payload:
maxRunTime: 3600
image: "rust:buster"
command:
- "/bin/bash"
- "-cx"
- "git clone --recursive --quiet ${repository} &&
[ ! -d cache/gecko-dev ] &&
git clone --quiet https://github.com/mozilla/gecko-dev.git /cache/gecko-dev || true &&
pushd /cache/gecko-dev && git pull origin master && popd &&
mkdir -p /tmp/mozilla_central_output &&
cd rust-code-analysis &&
git -c advice.detachedHead=false checkout ${head_rev} &&
cargo build --all --all-features &&
cargo run -p rust-code-analysis-cli -- -p /cache/gecko-dev \
-j24 --metrics -O json -o /tmp/mozilla_central_output"
cache:
rust-code-analysis-mozilla-central-repository: /cache
scopes:
- "docker-worker:cache:rust-code-analysis-mozilla-central-repository"
metadata:
name: rust-code-analysis mozilla-central test
description: rust-code-analysis-cli tested on mozilla-central
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- taskId: {$eval: as_slugid("build_documentation")}
created: {$fromNow: ''}
deadline: {$fromNow: '2 hour'}
Expand Down

0 comments on commit 62b5c29

Please sign in to comment.