forked from cherrypy/cheroot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
46 lines (36 loc) · 1.24 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
environment:
# Use the following web UI to encrypt your password:
# https://ci.appveyor.com/tools/encrypt
# Ref: https://github.com/cherrypy/cheroot/issues/40
# PYPI_PASSWORD:
# secure: u+K6dKi7+CXXVFEUG4V7zUyV3w7Ntg0Ork/RGVV0eSQ=
PYPI_USERNAME: jaraco
matrix:
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python27-x64"
install:
# symlink python from a directory with a space
- "mklink /d \"C:\\Program Files\\Python\" %PYTHON%"
- "SET PYTHON=\"C:\\Program Files\\Python\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -m pip install --upgrade --force-reinstall virtualenv"
- "python -m pip install tox"
- "python -m tox --notest -vv"
before_build:
- "python -m pip install wheel"
build_script:
- python -m setup bdist_wheel
test_script:
- python -m tox
version: '{build}'
on_finish:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit-test-results.xml))
#deploy_script:
# - ps: >-
# if($env:appveyor_repo_tag -eq 'True') {
# Invoke-Expression "python -m twine upload dist/* --username $env:PYPI_USERNAME --password $env:PYPI_PASSWORD"
# }
artifacts:
- path: dist\*