forked from ogrisel/coveragepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
122 lines (95 loc) · 2.93 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Appveyor, continuous integration for Windows
# https://ci.appveyor.com/project/nedbat/coveragepy
version: '{branch}-{build}'
shallow_clone: true
matrix:
allow_failures:
- PYTHON_ARCH: "64"
environment:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
matrix:
- JOB: "2.6 32-bit"
TOXENV: "py26"
PYTHON: "C:\\Python266"
PYTHON_VERSION: "2.6.6"
PYTHON_ARCH: "32"
- JOB: "2.7 32-bit"
TOXENV: "py27"
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
- JOB: "3.3 32-bit"
TOXENV: "py33"
PYTHON: "C:\\Python33"
PYTHON_VERSION: "3.3"
PYTHON_ARCH: "32"
- JOB: "3.4 32-bit"
TOXENV: "py34"
PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "32"
- JOB: "3.5 32-bit"
TOXENV: "py35"
PYTHON: "C:\\Python35rc2"
PYTHON_VERSION: "3.5.0rc2"
PYTHON_ARCH: "32"
- JOB: "2.7 64-bit"
TOXENV: "py27"
PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
- JOB: "3.3 64-bit"
TOXENV: "py33"
PYTHON: "C:\\Python33-x64"
PYTHON_VERSION: "3.3"
PYTHON_ARCH: "64"
- JOB: "3.4 64-bit"
TOXENV: "py34"
PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
- JOB: "3.5 64-bit"
TOXENV: "py35"
PYTHON: "C:\\Python35rc2-x64"
PYTHON_VERSION: "3.5.0rc2"
PYTHON_ARCH: "64"
# Meta coverage
- JOB: "Meta 2.7"
TOXENV: "py27"
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
COVERAGE_COVERAGE: "yes"
- JOB: "Meta 3.4"
TOXENV: "py34"
PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "32"
COVERAGE_COVERAGE: "yes"
init:
- "ECHO %TOXENV%"
install:
# Install Python (from the official .msi of http://python.org) and pip when
# not already installed.
- ps: if (-not(Test-Path($env:PYTHON))) { & ci\install.ps1 }
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "pip install --disable-pip-version-check --user --upgrade pip"
# Install requirements.
- "%CMD_IN_ENV% pip install -r ci/requirements.pip"
build_script:
- if NOT "%COVERAGE_COVERAGE%" == "yes" %CMD_IN_ENV% %PYTHON%\python setup.py bdist_wheel bdist_wininst
test_script:
- "%CMD_IN_ENV% %PYTHON%\\Scripts\\tox"
after_test:
- if "%COVERAGE_COVERAGE%" == "yes" 7z a metacov-win-%TOXENV%.zip %APPVEYOR_BUILD_FOLDER%\.metacov*
artifacts:
- path: "dist\\*"
- path: "metacov-*.zip"