psutil
/
appveyor.yml
83 строки · 2.3 Кб
1# Build: 3 (bump this up by 1 to force an appveyor run)
2
3os: Visual Studio 2015
4# avoid 2 builds when pushing on PRs
5skip_branch_with_pr: true
6# avoid build on new GIT tag
7skip_tags: true
8matrix:
9# stop build on first failure
10fast_finish: true
11environment:
12global:
13# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
14# /E:ON and /V:ON options are not enabled in the batch script interpreter
15# See: http://stackoverflow.com/a/13751649/163740
16WITH_COMPILER: "cmd /E:ON /V:ON /C .\\scripts\\internal\\appveyor_run_with_compiler.cmd"
17PYTHONWARNINGS: always
18PYTHONUNBUFFERED: 1
19PSUTIL_DEBUG: 1
20matrix:
21# 32 bits
22
23- PYTHON: "C:\\Python27"
24PYTHON_VERSION: "2.7.x"
25PYTHON_ARCH: "32"
26
27# 64 bits
28
29- PYTHON: "C:\\Python27-x64"
30PYTHON_VERSION: "2.7.x"
31PYTHON_ARCH: "64"
32
33
34init:
35- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
36
37install:
38- "%WITH_COMPILER% %PYTHON%/python.exe -m pip --version"
39- "%WITH_COMPILER% %PYTHON%/python.exe -m pip install --upgrade --user setuptools pip"
40- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/winmake.py setup-dev-env"
41- "%WITH_COMPILER% %PYTHON%/python.exe -m pip freeze"
42- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/winmake.py install"
43
44build: off
45
46test_script:
47- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/winmake.py test"
48- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/winmake.py test-memleaks"
49
50after_test:
51- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/winmake.py wheel"
52- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/print_hashes.py dist"
53- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/print_access_denied.py"
54- "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/print_api_speed.py"
55
56artifacts:
57- path: dist\*
58
59cache:
60- '%LOCALAPPDATA%\pip\Cache'
61
62# on_success:
63# - might want to upload the content of dist/*.whl to a public wheelhouse
64
65skip_commits:
66message: skip-appveyor
67
68# run build only if one of the following files is modified on commit
69only_commits:
70files:
71- .ci/appveyor/*
72- appveyor.yml
73- psutil/__init__.py
74- psutil/_common.py
75- psutil/_compat.py
76- psutil/_psutil_common.*
77- psutil/_psutil_windows.*
78- psutil/_pswindows.py
79- psutil/arch/windows/*
80- psutil/tests/*
81- scripts/*
82- scripts/internal/*
83- setup.py
84