]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
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 | |
ba9703b0 | 10 | python3 "../../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. | |
14 | if [ -n "${TOOLSTATE_PUBLISH+is_set}" ]; then | |
ba9703b0 | 15 | TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python3 \ |
60c5eb7d XL |
16 | "../../src/tools/publish_toolstate.py" |
17 | fi | |
18 | cd .. | |
19 | rm -rf rust-toolstate |