(ci) Fix cargo path in check_release_automation task

This commit is contained in:
Christoph Herzog 2019-06-25 15:14:28 +02:00 committed by theduke
parent 522a38b0b1
commit a84dbf710d

View file

@ -83,26 +83,27 @@ jobs:
- script: |
export CARGO_HOME="$HOME/.cargo"
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
displayName: Install stable Rust
- script: |
_build/cargo-make.sh "0.20.0" "x86_64-unknown-linux-musl"
displayName: Install cargo-make binary
- script: |
$HOME/.cargo/bin/cargo install cargo-release
cargo install --debug cargo-release
displayName: Install cargo-release binary
- script: |
git config --local user.name "Release Test Bot"
git config --local user.email "juniper@example.com"
displayName: Set up git
- script: |
RELEASE_LEVEL="minor" "$HOME/.cargo/bin/cargo" make release-dry-run
RELEASE_LEVEL="minor" cargo make release-dry-run
displayName: Dry run mode
- script: |
RELEASE_LEVEL="minor" "$HOME/.cargo/bin/cargo" make release-local-test
RELEASE_LEVEL="minor" cargo make release-local-test
displayName: Local test mode
- script: |
git --no-pager log -p HEAD...HEAD~20
displayName: Echo local changes
- script: |
# NOTE: this is rolled into one task due to onerous
# "bash not found" error on Azure.
cargo make workspace-ci-flow --no-workspace
displayName: Make sure build and tests still work
displayName: Echo local changes && make sure build and tests still work