forked from opencobra/memote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (45 loc) · 1.44 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
environment:
matrix:
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.12"
PYTHON_ARCH: "64"
TOX_ENV: "py27"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.5"
PYTHON_ARCH: "64"
TOX_ENV: "py34"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.2"
PYTHON_ARCH: "64"
TOX_ENV: "py35"
password:
secure: COPY PASTE FROM APPVEYORS ONLINE ENCRYPTION TOOL
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%bit"
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- "git config --system http.sslcainfo \"C:\\Program Files\\Git\\mingw64\\ssl\\certs\\ca-bundle.crt\""
- "%PYTHON%/python -V"
- "%PYTHON%/python -c \"import struct;print(8 * struct.calcsize(\'P\'))\""
install:
- "%PYTHON%/Scripts/easy_install -U pip"
- "%PYTHON%/Scripts/pip install tox"
- "%PYTHON%/Scripts/pip install wheel"
- "%PYTHON%/Scripts/pip install twine"
build: false
test_script:
- "%PYTHON%/Scripts/tox -e %TOX_ENV%"
after_test:
- "%PYTHON%/python setup.py bdist_wheel"
- ps: "ls dist"
artifacts:
- path: dist\*
deploy_script:
- "echo [pypi] > %USERPROFILE%\\.pypirc"
- "echo username: midnighter >> %USERPROFILE%\\.pypirc"
- "echo password: %password% >> %USERPROFILE%\\.pypirc"
- ps: >-
if($env:appveyor_repo_tag -eq 'True') {
if($env:appveyor_repo_branch -eq 'master') {
Invoke-Expression "$env:PYTHON/Scripts/twine upload --skip-existing dist/*"
}
}