Skip to content

Commit

Permalink
Reduce an unreadable long line into a shorter one
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored and marco-c committed Jan 14, 2021
1 parent 1adda30 commit adf3cbc
Showing 1 changed file with 45 additions and 39 deletions.
84 changes: 45 additions & 39 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,42 +342,48 @@ tasks:

- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
then:
taskId: {$eval: as_slugid("deploy_release")}
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'}
provisionerId: proj-relman
workerType: ci
scopes:
- secrets:get:project/relman/rust-code-analysis/deploy
payload:
features:
taskclusterProxy: true
maxRunTime: 3600
image: "mozilla/taskboot:0.3.2"
env:
TASKCLUSTER_SECRET: project/relman/rust-code-analysis/deploy
command:
- "/bin/sh"
- "-cx"
- "git config --global user.email moz-tools-bot@moz.tools &&
git config --global user.name moz.tools Bot &&
git clone --recursive --quiet ${repository} &&
cd rust-code-analysis &&
taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz &&
tar xfz book.tar.gz -C rust-code-analysis-book &&
./rust-code-analysis-book/deploy-to-GitHub-Pages &&
taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages &&
taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset rust-code-analysis-linux-cli-x86_64.tar.gz:public/rust-code-analysis-linux-cli-x86_64.tar.gz rust-code-analysis-linux-web-x86_64.tar.gz:public/rust-code-analysis-linux-web-x86_64.tar.gz rust-code-analysis-win-cli-x86_64.zip:public/rust-code-analysis-win-cli-x86_64.zip rust-code-analysis-win-web-x86_64.zip:public/rust-code-analysis-win-web-x86_64.zip &&
taskboot cargo-publish &&
cd rust-code-analysis-cli && taskboot cargo-publish && cd .. &&
cd rust-code-analysis-web && taskboot cargo-publish"
metadata:
name: "rust-code-analysis release publication ${head_branch[10:]}"
description: rust-code-analysis release publication on Github
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml
$let:
linux_cli: rust-code-analysis-linux-cli-x86_64.tar.gz
linux_web: rust-code-analysis-linux-web-x86_64.tar.gz
win_cli: rust-code-analysis-win-cli-x86_64.zip
win_web: rust-code-analysis-win-web-x86_64.zip
in:
taskId: {$eval: as_slugid("deploy_release")}
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'}
provisionerId: proj-relman
workerType: ci
scopes:
- secrets:get:project/relman/rust-code-analysis/deploy
payload:
features:
taskclusterProxy: true
maxRunTime: 3600
image: "mozilla/taskboot:0.3.2"
env:
TASKCLUSTER_SECRET: project/relman/rust-code-analysis/deploy
command:
- "/bin/sh"
- "-cx"
- "git config --global user.email moz-tools-bot@moz.tools &&
git config --global user.name moz.tools Bot &&
git clone --recursive --quiet ${repository} &&
cd rust-code-analysis &&
taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz &&
tar xfz book.tar.gz -C rust-code-analysis-book &&
./rust-code-analysis-book/deploy-to-GitHub-Pages &&
taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages &&
taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset ${linux_cli}:public/${linux_cli} ${linux_web}:public/${linux_web} ${win_cli}:public/${win_cli} ${win_web}:public/${win_web} &&
taskboot cargo-publish &&
cd rust-code-analysis-cli && taskboot cargo-publish && cd .. &&
cd rust-code-analysis-web && taskboot cargo-publish"
metadata:
name: "rust-code-analysis release publication ${head_branch[10:]}"
description: rust-code-analysis release publication on Github
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

0 comments on commit adf3cbc

Please sign in to comment.