summaryrefslogtreecommitdiff
path: root/.appveyor.yml
blob: 5c3add71c9ac064e68aaa7d8ea994bf48f07a3a7 (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
38
39
40
41
42
43
44
45
46
47
# yamllint disable rule:line-length
---

environment:
  matrix:
  - PYTHON: "C:\\Python37-x64"
  - PYTHON: "C:\\Python36-x64"

init:
- "chcp 65001"
- ps: >-
    if($env:APPVEYOR_RDP_DEBUG -eq 'True') {
      iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
    }

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"
- "python -m tox --notest"


before_build:
- "python -m pip install wheel"

build_script:
- python -m setup bdist_wheel

test_script:
- tox

on_finish:
- ps: >-
    if($env:APPVEYOR_RDP_DEBUG -eq 'True') {
      $blockRdp = $true
      iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
      }
- ps: |
    $wc = New-Object 'System.Net.WebClient'
    $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\.test-results\pytest\results.xml))

artifacts:
- path: dist\*

...