2015-11-08 16:15:08 +00:00
|
|
|
environment:
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- PYTHON: "C:\\Python27"
|
|
|
|
PYTHON_VERSION: "2.7.x"
|
|
|
|
PYTHON_ARCH: "32"
|
2018-07-14 13:02:21 +01:00
|
|
|
TOXENV: "py27-cov,py27-cov-lxml"
|
2016-09-11 17:06:39 +01:00
|
|
|
TOXPYTHON: "C:\\Python27\\python.exe"
|
2015-11-08 16:15:08 +00:00
|
|
|
|
2018-07-14 13:02:21 +01:00
|
|
|
- PYTHON: "C:\\Python36-x64"
|
2018-03-21 21:56:01 -05:00
|
|
|
PYTHON_VERSION: "3.6.x"
|
2015-11-08 16:15:08 +00:00
|
|
|
PYTHON_ARCH: "64"
|
2018-07-14 13:02:21 +01:00
|
|
|
TOXENV: "py36-cov,py36-cov-lxml"
|
|
|
|
TOXPYTHON: "C:\\Python36-x64\\python.exe"
|
2015-11-08 16:15:08 +00:00
|
|
|
|
2018-07-14 13:02:21 +01:00
|
|
|
- PYTHON: "C:\\Python37-x64"
|
|
|
|
PYTHON_VERSION: "3.7.x"
|
2015-11-08 16:15:08 +00:00
|
|
|
PYTHON_ARCH: "64"
|
2018-07-14 13:42:47 +01:00
|
|
|
# lxml doesn't have windows 3.7 wheels yet
|
|
|
|
# TOXENV: "py37-cov,py37-cov-lxml"
|
|
|
|
TOXENV: "py37-cov"
|
2018-07-14 13:02:21 +01:00
|
|
|
TOXPYTHON: "C:\\Python37-x64\\python.exe"
|
2015-11-08 16:15:08 +00:00
|
|
|
|
2018-07-14 13:02:21 +01:00
|
|
|
skip_branch_with_pr: true
|
2018-03-21 21:56:01 -05:00
|
|
|
|
2018-07-14 14:11:28 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2015-11-08 16:15:08 +00:00
|
|
|
init:
|
|
|
|
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
|
|
|
|
|
|
|
|
install:
|
|
|
|
# install Python and pip when not already installed
|
2015-12-29 16:04:29 +01:00
|
|
|
- ps: (new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/pypa/python-packaging-user-guide/49bf76f/source/code/install.ps1', 'install.ps1')
|
2015-11-08 16:15:08 +00:00
|
|
|
- ps: if (-not(Test-Path($env:PYTHON))) { & install.ps1 }
|
|
|
|
|
|
|
|
# prepend newly installed Python to the PATH
|
|
|
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
|
|
|
|
|
|
|
# check that we have the expected version and architecture for Python
|
|
|
|
- "python --version"
|
|
|
|
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
|
|
|
|
|
|
|
# upgrade pip to avoid out-of-date warnings
|
2018-06-09 02:00:32 +01:00
|
|
|
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
|
2015-11-08 16:15:08 +00:00
|
|
|
|
2016-09-11 17:06:39 +01:00
|
|
|
# install/upgrade setuptools and wheel to build packages
|
|
|
|
- "pip install --upgrade setuptools wheel"
|
2015-11-08 16:15:08 +00:00
|
|
|
|
2016-09-11 17:06:39 +01:00
|
|
|
# install tox to run test suite in a virtual environment
|
|
|
|
- "pip install -U tox"
|
2015-11-08 16:15:08 +00:00
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
2016-09-11 17:06:39 +01:00
|
|
|
- "tox"
|
2018-07-14 13:02:21 +01:00
|
|
|
|
|
|
|
on_success:
|
|
|
|
# upload test coverage to codecov.io
|
|
|
|
- tox -e codecov
|