2018-01-07 15:00:56 -04:00
|
|
|
version: 2.7build{build}
|
2017-05-03 13:42:42 -03:00
|
|
|
clone_depth: 5
|
2017-06-04 21:52:00 -03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /\d\.\d/
|
|
|
|
- buildbot-custom
|
2017-09-05 22:01:49 -03:00
|
|
|
cache:
|
|
|
|
- externals -> PCbuild\*
|
2018-02-11 15:57:11 -04:00
|
|
|
before_build:
|
|
|
|
- ps: |+
|
|
|
|
if ($env:APPVEYOR_RE_BUILD) {
|
|
|
|
echo 'Doing full build due to re-build request.'
|
|
|
|
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
|
|
|
|
echo 'Not a PR, doing full build.'
|
|
|
|
} else {
|
2018-02-11 18:29:11 -04:00
|
|
|
git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH
|
|
|
|
$mergebase = git merge-base HEAD FETCH_HEAD
|
2018-02-11 15:57:11 -04:00
|
|
|
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
|
|
|
|
If (!$changes) {
|
|
|
|
echo 'Only docs were updated, stopping build process.'
|
|
|
|
Exit-AppveyorBuild
|
2018-06-04 01:52:38 -03:00
|
|
|
} else {
|
|
|
|
echo 'Doing full build due to non-doc changes in these files:'
|
|
|
|
echo $changes
|
2018-02-11 15:57:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-05-03 13:42:42 -03:00
|
|
|
build_script:
|
2018-02-11 15:57:11 -04:00
|
|
|
- cmd: PCbuild\build.bat -e
|
|
|
|
- cmd: PCbuild\python.exe -m test.pythoninfo
|
2017-05-03 13:42:42 -03:00
|
|
|
test_script:
|
2018-06-04 01:52:38 -03:00
|
|
|
- cmd: PCbuild\rt.bat -q -uall -u-cpu -u-largefile -rwW --slowest -j2
|
2017-09-04 20:05:33 -03:00
|
|
|
environment:
|
|
|
|
HOST_PYTHON: C:\Python36\python.exe
|