File: .appveyor.yml

package info (click to toggle)
python-cheroot 6.5.4%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 504 kB
  • sloc: python: 4,648; makefile: 14; sh: 2
file content (45 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download
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
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 tox"
  - "python -m tox --notest"


before_build:
  - "python -m pip install wheel"

build_script:
  - python -m setup bdist_wheel

test_script:
  - python -m tox

version: '{build}'

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