2 # A quick smoke test to make sure publish_tooolstate.py works.
8 git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
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"