Zachary Ware | 7de25b1 | 2018-02-04 14:09:29 -0600 | [diff] [blame] | 1 | version: 3.8build{build} |
Zachary Ware | d31b28e | 2017-03-05 15:45:53 -0600 | [diff] [blame] | 2 | clone_depth: 5 |
Zachary Ware | d3bedf3 | 2017-06-04 15:18:50 -0500 | [diff] [blame] | 3 | branches: |
| 4 | only: |
| 5 | - master |
| 6 | - /\d\.\d/ |
| 7 | - buildbot-custom |
Zachary Ware | f801322 | 2017-09-04 14:59:02 -0700 | [diff] [blame] | 8 | cache: |
Zachary Ware | 6850450 | 2018-02-04 14:36:43 -0600 | [diff] [blame] | 9 | - externals -> PCbuild |
Zachary Ware | 28607e0 | 2018-02-11 11:19:51 -0600 | [diff] [blame] | 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 { |
Zachary Ware | 6ea20fc | 2018-02-11 15:35:09 -0600 | [diff] [blame] | 17 | git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH |
| 18 | $mergebase = git merge-base HEAD FETCH_HEAD |
Zachary Ware | 28607e0 | 2018-02-11 11:19:51 -0600 | [diff] [blame] | 19 | $changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)' |
| 20 | If (!$changes) { |
| 21 | echo 'Only docs were updated, stopping build process.' |
| 22 | Exit-AppveyorBuild |
Zachary Ware | 47a6c79 | 2018-06-03 20:13:31 -0500 | [diff] [blame] | 23 | } else { |
| 24 | echo 'Doing full build due to non-doc changes in these files:' |
| 25 | echo $changes |
Zachary Ware | 28607e0 | 2018-02-11 11:19:51 -0600 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | |
| 29 | |
Zachary Ware | d31b28e | 2017-03-05 15:45:53 -0600 | [diff] [blame] | 30 | build_script: |
Victor Stinner | 8b96eed | 2018-07-23 13:16:41 +0200 | [diff] [blame] | 31 | - cmd: PCbuild\build.bat -e -p x64 |
| 32 | - cmd: PCbuild\amd64\python.exe -m test.pythoninfo |
Zachary Ware | d31b28e | 2017-03-05 15:45:53 -0600 | [diff] [blame] | 33 | test_script: |
Victor Stinner | 8b96eed | 2018-07-23 13:16:41 +0200 | [diff] [blame] | 34 | - cmd: PCbuild\rt.bat -x64 -q -uall -u-cpu -u-largefile -rwW --slowest --timeout=1200 --fail-env-changed -j0 |
Steve Dower | 5feda33 | 2017-07-18 19:31:51 +0200 | [diff] [blame] | 35 | environment: |
| 36 | HOST_PYTHON: C:\Python36\python.exe |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 37 | image: |
Zachary Ware | 47a6c79 | 2018-06-03 20:13:31 -0500 | [diff] [blame] | 38 | - Visual Studio 2017 |