-
Notifications
You must be signed in to change notification settings - Fork 42
/
.appveyor.yml
34 lines (28 loc) · 1.04 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: 2.8build{build}
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\python.exe -m test.pythoninfo
test_script:
- cmd: PCbuild\rt.bat -q -uall -u-cpu -u-largefile -rwW --slowest -j3 -x test_concurrent_futures test_multiprocessing test_selectors test_distutils
environment:
HOST_PYTHON: C:\Python36\python.exe