Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ cache:
before_build:
- ps: |+
if ($env:APPVEYOR_RE_BUILD) {
# If we were explicitly told to rebuild, do a full build
echo 'Doing full build due to re-build request.'
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
# It's not a pull request, do a full build
echo 'Not a PR, doing full build.'
} else {
$mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
If (git diff --name-only $mergebase | grep -qvE '(\.rst$)|(^Doc)|(^Misc)') {
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
If (!$changes) {
echo 'Only docs were updated, stopping build process.'
Exit-AppveyorBuild
}
Expand Down