summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 8c24ec3f510a09cb2a399c817c233bd5e3d1985c (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
48
49
50
clone_depth: 50

environment:

  APPVEYOR: True
  NETWORK_REQUIRED: True
  CODECOV_ENV: APPVEYOR_JOB_NAME

  matrix:
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      APPVEYOR_JOB_NAME: "Python38-x64-vs2015"
      PYTHON: "C:\\Python38-x64"
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      APPVEYOR_JOB_NAME: "Python38-x64-vs2017"
      PYTHON: "C:\\Python38-x64"
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
      APPVEYOR_JOB_NAME: "Python38-x64-vs2019"
      PYTHON: "C:\\Python38-x64"
    - APPVEYOR_JOB_NAME: "python37-x64"
      PYTHON: "C:\\Python37-x64"
    - APPVEYOR_JOB_NAME: "python36-x64"
      PYTHON: "C:\\Python36-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%"

build: off

cache:
  - '%LOCALAPPDATA%\pip\Cache'

test_script:
  - python --version
  - python -m pip install --disable-pip-version-check --upgrade pip setuptools wheel
  - pip install --upgrade tox tox-venv virtualenv
  - pip freeze --all
  - tox -- --junit-xml=test-results.xml

after_test:
    - tox -e coverage,codecov

on_finish:
  - ps: |
      $wc = New-Object 'System.Net.WebClient'
      $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-results.xml))

version: '{build}'