appveyor.yml
init:
- ECHO %PYTHON%
environment:
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
install:
- ECHO "Filesystem root:"
- ps: "ls \"C:/\""
- ECHO "Installed SDKs:"
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "pip install --disable-pip-version-check --user --upgrade pip"
- "pip install flake8 pytest pytest-cov wheel codecov"
test_script:
- "py.test -s --cov=inputimeout tests\ "
after_test:
- rm -rf tests/coverages
- if not exist dist mkdir dist
- if exist .coverage (cp .coverage dist\) else (echo no .coverage)
- codecov
- if exist coverage.xml (cp coverage.xml dist\) else (echo no coverage.xml)
artifacts:
- path: dist\*
build_script:
- "python setup.py bdist_wheel"