]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/mingw-check/validate-toolstate.sh
Test drop_tracking_mir before querying generator.
[rust.git] / src / ci / docker / host-x86_64 / mingw-check / validate-toolstate.sh
1 #!/bin/bash
2 # A quick smoke test to make sure publish_tooolstate.py works.
3
4 set -euo pipefail
5 IFS=$'\n\t'
6
7 rm -rf rust-toolstate
8 git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
9 cd rust-toolstate
10 python3 "../../src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" \
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.
14 if [ -n "${TOOLSTATE_PUBLISH+is_set}" ]; then
15   TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python3 \
16       "../../src/tools/publish_toolstate.py"
17 fi
18 cd ..
19 rm -rf rust-toolstate