Smoke test rust-code-analysis-cli on mozilla-central (#290)
This commit is contained in:
Родитель
e6a78bd9e9
Коммит
2e1b0a6d8b
|
@ -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")}
|
||||
|
@ -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'}
|
||||
|
|
Загрузка…
Ссылка в новой задаче