mirror of
https://github.com/python/cpython
synced 2026-11-23 00:04:08 +03:00
Remove VS2017 image from AppVeyor config. We're currently having caching issues between the two images, and VS2017 builds are tested by VSTS. Removing that one here will significantly decrease the time that AppVeyor builds take on this branch.
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
version: 3.6build{build}
|
|
clone_depth: 5
|
|
branches:
|
|
only:
|
|
- master
|
|
- /\d\.\d/
|
|
- buildbot-custom
|
|
cache:
|
|
- externals -> PCbuild\*
|
|
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 {
|
|
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
|
|
} else {
|
|
echo 'Doing full build due to non-doc changes in these files:'
|
|
echo $changes
|
|
}
|
|
}
|
|
|
|
|
|
build_script:
|
|
- cmd: PCbuild\build.bat -e
|
|
- cmd: PCbuild\win32\python.exe -m test.pythoninfo
|
|
test_script:
|
|
- cmd: PCbuild\rt.bat -q -uall -u-cpu -u-largefile -rwW --slowest --timeout=1200 -j0
|
|
environment:
|
|
HOST_PYTHON: C:\Python36\python.exe
|
|
image:
|
|
- Visual Studio 2015
|