summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: dae781e3424ba7d21e664ed4f8498fce9a6bc9d0 (plain)
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
environment:
  matrix:
  - PYTHON: "C:\\Python36-x64"
  - PYTHON: "C:\\Python35-x64"
  - PYTHON: "C:\\Python34-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 tox"


before_build:
- "python -m pip install wheel"

build_script:
- python -m setup bdist_wheel

test_script:
- tox

after_test:
- 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\*