-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
114 lines (79 loc) · 3.13 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
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python33"
PYTHON_VERSION: "3.3.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python33-x64"
PYTHON_VERSION: "3.3.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
PYPIUSERNAME:
secure: 9PcMMf9KccpsdTeMp+2m+A==
PYPIPASSWORD:
secure: BU3VwuaiD1GnvjsIr3wnhcmHHNeYdukKgq6N2/uY7Zo=
PYPITESTUSERNAME:
secure: 9PcMMf9KccpsdTeMp+2m+A==
PYPITESTPASSWORD:
secure: BU3VwuaiD1GnvjsIr3wnhcmHHNeYdukKgq6N2/uY7Zo=
PYPI: pypitest
SKIP_IF_PY33: "echo %PYTHON% | findstr 33 && echo Skipped || "
SKIP_UNLESS_PY36_64: "echo %PYTHON% | findstr /V 36-x64 && echo Skipped || "
install:
- ps: "ls \"C:/Python*\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -c \"import sys; sys.stdout.write(sys.version);\""
- "pip --version"
- "easy_install --version"
- "pip freeze"
build_script:
- "python setup.py clean build"
before_test:
- "pip install hacking docutils"
test_script:
- "python test.py"
- "%SKIP_IF_PY33% python setup.py check -m -r -s"
- "%SKIP_IF_PY33% python -m flake8 ."
after_test:
# Prepare .pypirc to upload packages to PyPI
- "echo. > %USERPROFILE%\\.pypirc"
- "echo [distutils] >> %USERPROFILE%\\.pypirc"
- "echo index-servers= >> %USERPROFILE%\\.pypirc"
- "echo pypi >> %USERPROFILE%\\.pypirc"
- "echo pypitest >> %USERPROFILE%\\.pypirc"
- "echo [pypi] >> %USERPROFILE%\\.pypirc"
- "echo repository = https://upload.pypi.org/legacy/ >> %USERPROFILE%\\.pypirc"
- "echo username = %PYPIUSERNAME% >> %USERPROFILE%\\.pypirc"
- "echo password = %PYPIPASSWORD% >> %USERPROFILE%\\.pypirc"
- "echo [pypitest] >> %USERPROFILE%\\.pypirc"
- "echo repository = https://test.pypi.org/legacy/ >> %USERPROFILE%\\.pypirc"
- "echo username = %PYPITESTUSERNAME% >> %USERPROFILE%\\.pypirc"
- "echo password = %PYPITESTPASSWORD% >> %USERPROFILE%\\.pypirc"
# Determine if building target is a tag which name starts with 'v0', 'v1', ... or 'v9'
- "echo %APPVEYOR_REPO_TAG_NAME% | findstr /B \"v[0-9]\" && set PYPI=pypi || exit /b 0"
- "%SKIP_UNLESS_PY36_64% python setup.py sdist upload -r %PYPI: =%"
- "dir dist || exit /b 0"
#artifacts:
#on_success: