diff options
| author | mark <markm@cs.wisc.edu> | 2020-10-08 15:54:29 -0500 |
|---|---|---|
| committer | Joshua Nelson <joshua@yottadb.com> | 2020-10-08 17:11:36 -0400 |
| commit | e81601f62f8c9d29972912a9efd984d4615d96ab (patch) | |
| tree | 88f2243f81e48a1cac007d2add1e0dc5d2a90538 /src/doc/rustc-dev-guide | |
| parent | 325268f53e6cefe258348ffab1b09faee4ac81ed (diff) | |
| download | rust-e81601f62f8c9d29972912a9efd984d4615d96ab.tar.gz rust-e81601f62f8c9d29972912a9efd984d4615d96ab.zip | |
add assert
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rwxr-xr-x | src/doc/rustc-dev-guide/ci/linkcheck.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/ci/linkcheck.sh b/src/doc/rustc-dev-guide/ci/linkcheck.sh index a1cd424fbd9..db6b35a5b7f 100755 --- a/src/doc/rustc-dev-guide/ci/linkcheck.sh +++ b/src/doc/rustc-dev-guide/ci/linkcheck.sh @@ -9,6 +9,11 @@ if [ "$TRAVIS_EVENT_TYPE" = "cron" ] ; then # running in cron job echo "Doing full link check." elif [ "$CI" = "true" ] ; then # running in PR CI build + if [ -n "$TRAVIS_COMMIT_RANGE" ]; then + echo "error: unexpected state: COMMIT_RANGE must be non-empty in CI" + exit 1 + fi + CHANGED_FILES=$(git diff --name-only $TRAVIS_COMMIT_RANGE | tr '\n' ' ') FLAGS="-f $CHANGED_FILES" |
