forked from fonttools/openstep-plist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
100 lines (81 loc) · 2.58 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
environment:
TOXENV: "py-nocov"
TWINE_USERNAME: "anthrotype"
TWINE_PASSWORD:
secure: 9L/DdqoIILlN7qCh0lotvA==
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
TOXENV: "py-{nocov,cov}"
UPLOAD_COVERAGE: true
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
TOXENV: "py-{nocov,cov}"
UPLOAD_COVERAGE: true
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
matrix:
fast_finish: true
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
# checkout git sub-modules
- git submodule update --init --recursive
# prepend newly installed Python to the PATH
- "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 pip to avoid out-of-date warnings
- python -m pip install --disable-pip-version-check --upgrade pip
- pip --version
# upgrade setuptools and virtualenv
- pip install --upgrade setuptools virtualenv
# install tox to run test suite in a virtual environment
- pip install --upgrade tox
# build wheel from sdist
- tox --sdistonly
- tox -e wheel
# get the full path to the compiled wheel (ugly but works)
- dir /s /b .tox\dist\openstep_plist*.whl > wheel.pth
- set /p WHEEL_PATH=<wheel.pth
build: false
test_script:
# run tests on the compiled wheel
- tox --installpkg "%WHEEL_PATH%"
on_failure:
# print the content of tox *.log files
- ps: Get-Content .tox\\log\\*.log
- ps: $envlogdir = ".tox\\" + ${env:TOXENV} + "\\log"; `
foreach($logfile in Get-ChildItem $envlogdir){ `
$logpath = $envlogdir + "\\" + $logfile; `
Get-Content -path $logpath }
on_success:
# Deploy wheels on tags to PyPI
- ps: >-
if($env:UPLOAD_COVERAGE -eq 'true') {
tox -e codecov
}
- ps: >-
if($env:APPVEYOR_REPO_TAG -eq 'true') {
Write-Output ("Deploying " + $env:APPVEYOR_REPO_TAG_NAME + " to PyPI...")
pip install --upgrade twine
twine upload $env:WHEEL_PATH
} else {
Write-Output "Not deploying as this is not a tagged commit"
}
artifacts:
# archive the generated packages in the ci.appveyor.com build report
- path: .tox\dist\*