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 {
|
|
|
|
$mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
|
|
|
|
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
|
|
|
|
If (!$changes) {
|
|
|
|
echo 'Only docs were updated, stopping build process.'
|
|
|
|
Exit-AppveyorBuild
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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-02-11 15:57:11 -04:00
|
|
|
- cmd: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest -j2
|
2017-09-04 20:05:33 -03:00
|
|
|
environment:
|
|
|
|
HOST_PYTHON: C:\Python36\python.exe
|