From: Oliver Schneider Date: Wed, 9 May 2018 16:22:46 +0000 (+0200) Subject: Document the checktools script X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=b8174030841d1b3a26add05ba7de6d252c135d8c;p=rust.git Document the checktools script --- diff --git a/src/ci/docker/x86_64-gnu-tools/checktools.sh b/src/ci/docker/x86_64-gnu-tools/checktools.sh index b0b88a6f305..d71d5daf811 100755 --- a/src/ci/docker/x86_64-gnu-tools/checktools.sh +++ b/src/ci/docker/x86_64-gnu-tools/checktools.sh @@ -23,6 +23,8 @@ SIX_WEEK_CYCLE="$(( ($(date +%s) / 604800 - 3) % 6 ))" touch "$TOOLSTATE_FILE" +# Try to test all the tools and store the build/test success in the TOOLSTATE_FILE + set +e python2.7 "$X_PY" test --no-fail-fast \ src/doc/book \ @@ -38,6 +40,7 @@ set -e cat "$TOOLSTATE_FILE" echo +# This function checks that if a tool's submodule changed, the tool's state must improve verify_status() { echo "Verifying status of $1..." if echo "$CHANGED_FILES" | grep -q "^M[[:blank:]]$2$"; then @@ -57,6 +60,7 @@ verify_status() { fi } +# deduplicates the submodule check and the assertion that on beta some tools MUST be passing check_dispatch() { if [ "$1" = submodule_changed ]; then # ignore $2 (branch id) @@ -69,6 +73,7 @@ check_dispatch() { fi } +# list all tools here status_check() { check_dispatch $1 beta book src/doc/book check_dispatch $1 beta nomicon src/doc/nomicon @@ -103,4 +108,6 @@ $COMMIT\t$(cat "$TOOLSTATE_FILE") exit 0 fi +# abort compilation if an important tool doesn't build +# (this code is reachable if not on the nightly channel) status_check "beta_required"