@@ -53,37 +53,6 @@ tasks:
53535454 source : ${repository}/raw/${head_rev}/.taskcluster.yml
5555
56- - taskId : {$eval: as_slugid("test_mozilla_central")}
57- created : {$fromNow: ''}
58- deadline : {$fromNow: '1 hour'}
59- provisionerId : proj-relman
60- workerType : ci
61- payload :
62- maxRunTime : 3600
63- image : " rust:buster"
64- command :
65- - " /bin/bash"
66- - " -cx"
67- - " git clone --recursive --quiet ${repository} &&
68- [ ! -d \" cache/gecko-dev\" ] &&
69- git clone --quiet https://github.com/mozilla/gecko-dev.git /cache/gecko-dev || true &&
70- pushd /cache/gecko-dev && git pull origin master && popd &&
71- mkdir -p /tmp/mozilla_central_output &&
72- cd rust-code-analysis &&
73- git -c advice.detachedHead=false checkout ${head_rev} &&
74- cargo build --release --all --all-features &&
75- cargo run --release -p rust-code-analysis-cli -- -p /cache/gecko-dev \
76- -j24 --metrics -O json -o /tmp/mozilla_central_output"
77- cache :
78- rust-code-analysis-mozilla-central-repository : /cache
79- scopes :
80- - " docker-worker:cache:rust-code-analysis-mozilla-central-repository"
81- metadata :
82- name : rust-code-analysis mozilla-central test
83- description : rust-code-analysis-cli tested on mozilla-central
84- 85- source : ${repository}/raw/${head_rev}/.taskcluster.yml
86-
8756 - taskId : {$eval: as_slugid("build_documentation")}
8857 created : {$fromNow: ''}
8958 deadline : {$fromNow: '2 hour'}
@@ -178,6 +147,42 @@ tasks:
178147179148 source : ${repository}/raw/${head_rev}/.taskcluster.yml
180149
150+ - $if : ' tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
151+ then :
152+ taskId : {$eval: as_slugid("test_mozilla_central")}
153+ dependencies :
154+ - {$eval: as_slugid("lint_test_task")}
155+ - {$eval: as_slugid("windows_test_task")}
156+ created : {$fromNow: ''}
157+ deadline : {$fromNow: '1 hour'}
158+ provisionerId : proj-relman
159+ workerType : ci
160+ payload :
161+ maxRunTime : 3600
162+ image : " rust:buster"
163+ command :
164+ - " /bin/bash"
165+ - " -cx"
166+ - " git clone --recursive --quiet ${repository} &&
167+ [ ! -d \" cache/gecko-dev\" ] &&
168+ git clone --quiet https://github.com/mozilla/gecko-dev.git /cache/gecko-dev || true &&
169+ pushd /cache/gecko-dev && git pull origin master && popd &&
170+ mkdir -p /tmp/mozilla_central_output &&
171+ cd rust-code-analysis &&
172+ git -c advice.detachedHead=false checkout ${head_rev} &&
173+ cargo build --release --all --all-features &&
174+ cargo run --release -p rust-code-analysis-cli -- -p /cache/gecko-dev \
175+ -j24 --metrics -O json -o /tmp/mozilla_central_output"
176+ cache :
177+ rust-code-analysis-mozilla-central-repository : /cache
178+ scopes :
179+ - " docker-worker:cache:rust-code-analysis-mozilla-central-repository"
180+ metadata :
181+ name : rust-code-analysis mozilla-central test
182+ description : rust-code-analysis-cli tested on mozilla-central
183+ 184+ source : ${repository}/raw/${head_rev}/.taskcluster.yml
185+
181186 - $if : ' tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
182187 then :
183188 taskId : {$eval: as_slugid("build_linux_release")}
@@ -300,6 +305,7 @@ tasks:
300305 dependencies :
301306 - {$eval: as_slugid("build_linux_release")}
302307 - {$eval: as_slugid("strip_windows_binary")}
308+ - {$eval: as_slugid("test_mozilla_central")}
303309 - {$eval: as_slugid("build_documentation")}
304310 created : {$fromNow: ''}
305311 deadline : {$fromNow: '2 hour'}
0 commit comments