forked from midstar/pycstruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
37 lines (28 loc) · 884 Bytes
/
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
version: 0.11.1.{build}
environment:
PYTHONUNBUFFERED: 1
matrix:
- PYTHON_VERSION: "38"
- PYTHON_VERSION: "37"
POST_COMMAND: "coveralls" # Only export coverage in this version
init:
- SET PYTHON=Python%PYTHON_VERSION%
- SET PATH=C:\%PYTHON%;C:\Users\appveyor\AppData\Roaming\Python\%PYTHON%\Scripts;%PATH%
- python -V
build: off
install:
- python -m pip install -U --user pip
- python -m pip install -U --user tox
test_script:
- tox -e py%PYTHON_VERSION%
- python tests/buildtest.py
deploy_script:
- ps: |
if($env:PYTHON_VERSION -eq "37" -And $env:APPVEYOR_REPO_BRANCH -eq "master") {
Write-Output "Deploying for this build"
python -m pip install -U --user setuptools wheel twine
python setup.py sdist bdist_wheel
python -m twine upload dist/*
} else {
Write-Output "No deployment for this build"
}