forked from aburrell/aacgmv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
140 lines (137 loc) · 4.55 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '{branch}-{build}'
build: off
environment:
global:
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
PYPI_PASS:
secure: Z/l1zigTZhGlPitWhwiW0Ex9ySRKdLuQphMQKHGkriFdvIKYDpoNH4xUDwj/hcRovQXkqyhVSZi9Yv7HVLPpwfySyJ3s0Q30ErJj1xbdmlgSEt+wQJov/nfINOR7rmNrt0PPvqiTLe0UPb+ZBKC3+yLhtNiPpXNyu0OrHwU1PS0tWvbiW/GoRfMP/c6SssSAenlXSibCRlaLpIooIWyuZdNycJBd+9FfiJ07DJjJB1gHlZSNUsfinXyv
matrix:
- TOXENV: check
PYTHON: C:\Python38
PYTHON_HOME: C:\Python38
PYTHON_VERSION: '3.8'
PYTHON_ARCH: '32'
- TOXENV: '2.7-nocover'
TOXPYTHON: C:\python27\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON: C:\python27
PYTHON_HOME: C:\python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
- TOXENV: '2.7-nocover'
TOXPYTHON: C:\python27-x64\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON: C:\python27-x64
PYTHON_HOME: C:\python27-x64
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '64'
- TOXENV: '3.4-nocover'
TOXPYTHON: C:\python34\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON: C:\python34
PYTHON_HOME: C:\python34
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '32'
- TOXENV: '3.4-nocover'
TOXPYTHON: C:\python34-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON: C:\python34-x64
PYTHON_HOME: C:\python34-x64
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '64'
- TOXENV: '3.5-nocover'
TOXPYTHON: C:\python35\python.exe
PYTHON: C:\python35
PYTHON_HOME: C:\python35
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '32'
- TOXENV: '3.5-nocover'
TOXPYTHON: C:\python35-x64\python.exe
PYTHON: C:\python35-x64
PYTHON_HOME: C:\python35-x64
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '64'
- TOXENV: '3.6-nocover'
TOXPYTHON: C:\python36\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON: C:\python36
PYTHON_HOME: C:\python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
- TOXENV: '3.6-nocover'
TOXPYTHON: C:\python36-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON: C:\python36-x64
PYTHON_HOME: C:\python36-x64
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '64'
- TOXENV: '3.7-nocover'
TOXPYTHON: C:\python37\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON: C:\python37
PYTHON_HOME: C:\python37
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '32'
- TOXENV: '3.7-nocover'
TOXPYTHON: C:\python37-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON: C:\python37-x64
PYTHON_HOME: C:\python37-x64
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '64'
- TOXENV: '3.8-nocover'
TOXPYTHON: C:\python38\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON: C:\python38
PYTHON_HOME: C:\python38
PYTHON_VERSION: '3.8'
PYTHON_ARCH: '32'
- TOXENV: '3.8-nocover'
TOXPYTHON: C:\python38-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON: C:\python38-x64
PYTHON_HOME: C:\python38-x64
PYTHON_VERSION: '3.8'
PYTHON_ARCH: '64'
init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
install:
# Search for [ci skip] or [skip ci] and exit if found in full commit message
# https://github.com/appveyor/ci/issues/1865#issuecomment-423091750
# https://github.com/appveyor/ci/issues/1865
- ps: $commit=$env:APPVEYOR_REPO_COMMIT_MESSAGE + $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
- ps: If ($commit.Contains("[skip ci]") -Or $commit.Contains("[ci skip]")) { Exit-AppVeyorBuild }
# from tornado
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- python --version
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
- "python -m pip install tox wheel"
# check versions
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
test_script:
# from tornado
- "tox -e %TOXENV%"
after_test:
# if tagged commit, build/upload wheel
- IF "%TOXENV%"=="check" (python setup.py sdist)
- IF "%APPVEYOR_REPO_TAG%"=="true" IF "%TOXENV%"=="check" (
python -m pip install cibuildwheel==1.5.5 twine &&
python -m cibuildwheel --output-dir dist &&
python -m twine upload -u __token__ -p %PYPI_PASS% dist/*
)
on_failure:
- ps: dir "env:"
- ps: get-content .tox\*\log\*
artifacts:
- path: dist\*
matrix:
allow_failures:
- TOXENV: 'check'
- TOXENV: '3.4-nocover'
### To enable remote debugging uncomment this:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))