diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-11 22:21:32 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2018-02-11 22:21:32 (GMT) |
commit | db1de759a9caed5f77b9b550ce0085833a1eb05b (patch) | |
tree | c86a4e5d8b9c37046140d48c0034076ee3930dcb /.github/appveyor.yml | |
parent | 7574a1a8916639075dce3534aae8a54e977e06e9 (diff) | |
download | cpython-db1de759a9caed5f77b9b550ce0085833a1eb05b.zip cpython-db1de759a9caed5f77b9b550ce0085833a1eb05b.tar.gz cpython-db1de759a9caed5f77b9b550ce0085833a1eb05b.tar.bz2 |
Fix AppVeyor doc short-circuit (GH-5634)
(cherry picked from commit 6ea20fc719dcaf102d2cefa1786f0421514f7a58)
Diffstat (limited to '.github/appveyor.yml')
-rw-r--r-- | .github/appveyor.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/appveyor.yml b/.github/appveyor.yml index 6e6a078..e269696 100644 --- a/.github/appveyor.yml +++ b/.github/appveyor.yml @@ -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 } |