File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,26 @@ branches:
7
7
- buildbot-custom
8
8
cache :
9
9
- externals -> PCbuild\*
10
+ before_build :
11
+ - ps : |+
12
+ if ($env:APPVEYOR_RE_BUILD) {
13
+ echo 'Doing full build due to re-build request.'
14
+ } elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
15
+ echo 'Not a PR, doing full build.'
16
+ } else {
17
+ $mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
18
+ $changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
19
+ If (!$changes) {
20
+ echo 'Only docs were updated, stopping build process.'
21
+ Exit-AppveyorBuild
22
+ }
23
+ }
24
+
25
+
10
26
build_script :
11
- - cmd : PCbuild\build.bat -e
12
- - cmd : PCbuild\python.exe -m test.pythoninfo
27
+ - cmd : PCbuild\build.bat -e
28
+ - cmd : PCbuild\python.exe -m test.pythoninfo
13
29
test_script :
14
- - cmd : PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest -j2
30
+ - cmd : PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest -j2
15
31
environment :
16
32
HOST_PYTHON : C:\Python36\python.exe
You can’t perform that action at this time.
0 commit comments