Skip to content

Commit

Permalink
Smoke test rust-code-analysis-cli on mozilla-central (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Nov 11, 2020
1 parent e6a78bd commit 2e1b0a6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,42 @@ tasks:
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
then:
taskId: {$eval: as_slugid("test_mozilla_central")}
dependencies:
- {$eval: as_slugid("lint_test_task")}
- {$eval: as_slugid("windows_test_task")}
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 --release --all --all-features &&
cargo run --release -p rust-code-analysis-cli -- -p /cache/gecko-dev \
-j4 --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

- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
then:
taskId: {$eval: as_slugid("build_linux_release")}
Expand Down Expand Up @@ -269,6 +305,7 @@ tasks:
dependencies:
- {$eval: as_slugid("build_linux_release")}
- {$eval: as_slugid("strip_windows_binary")}
- {$eval: as_slugid("test_mozilla_central")}
- {$eval: as_slugid("build_documentation")}
created: {$fromNow: ''}
deadline: {$fromNow: '2 hour'}
Expand Down

0 comments on commit 2e1b0a6

Please sign in to comment.