]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/mingw-check/validate-toolstate.sh
New upstream version 1.44.1+dfsg1
[rustc.git] / src / ci / docker / mingw-check / validate-toolstate.sh
CommitLineData
60c5eb7d
XL
1#!/bin/bash
2# A quick smoke test to make sure publish_tooolstate.py works.
3
4set -euo pipefail
5IFS=$'\n\t'
6
7rm -rf rust-toolstate
8git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
9cd rust-toolstate
ba9703b0 10python3 "../../src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" \
60c5eb7d
XL
11 "$(git log --format=%s -n1 HEAD)" "" ""
12# Only check maintainers if this build is supposed to publish toolstate.
13# Builds that are not supposed to publish don't have the access token.
14if [ -n "${TOOLSTATE_PUBLISH+is_set}" ]; then
ba9703b0 15 TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python3 \
60c5eb7d
XL
16 "../../src/tools/publish_toolstate.py"
17fi
18cd ..
19rm -rf rust-toolstate