Commit 2cf88049 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by Zachary Ware

Fix AppVeyor doc short-circuit (GH-5635)

(cherry picked from commit 6ea20fc7)
parent 239e13b3
......@@ -14,12 +14,15 @@ before_build:
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
echo 'Not a PR, doing full build.'
} else {
$mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH
$mergebase = git merge-base HEAD FETCH_HEAD
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
If (!$changes) {
echo 'Only docs were updated, stopping build process.'
Exit-AppveyorBuild
}
echo 'Doing full build due to non-doc changes in these files:'
echo $changes
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment