Skip to content

Commit

Permalink
Fix AppVeyor doc short-circuit (GH-5634)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6ea20fc)
  • Loading branch information
miss-islington authored and zware committed Feb 11, 2018
1 parent 7574a1a commit db1de75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/appveyor.yml
Expand Up @@ -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
}
Expand Down

0 comments on commit db1de75

Please sign in to comment.