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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[global]
src =
puresasl
tests
setup.py
[tox]
envlist = py26,py27,py33,py34,py35,py36,pep8
skipsdist = true
skip_install = true
usedevelop = false
###########################
# Default testenv
###########################
[testenv]
basepython =
py26: python2.6
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
py36: python3.6
passenv =
# See https://github.com/codecov/example-python#testing-with-tox
codecov: CI TRAVIS TRAVIS_*
codecov: TOXENV
deps =
-r{toxinidir}/test-requirements.txt
install_command =
pip install {opts} {packages}
skipsdist = true
skip_install = true
usedevelop = true
changedir = {toxinidir}
commands =
nosetests \
--with-coverage \
--cover-package={[coverage:run]source} \
{posargs}
coverage combine --append
###########################
# Run pytest
###########################
[testenv:py26]
[testenv:py27]
[testenv:py33]
[testenv:py34]
[testenv:py35]
[testenv:py36]
###########################
# Publish to Codecov
###########################
[testenv:codecov]
basepython = python3
deps = codecov
skipsdist = true
skip_install = true
usedevelop = false
changedir = {toxinidir}
commands =
codecov -e TOXENV --required
###########################
# Run PEP8
###########################
[testenv:pep8]
basepython = python3
deps = pycodestyle
skipsdist = true
skip_install = true
usedevelop = false
changedir = {toxinidir}
commands=
pycodestyle \
{posargs:{[global]src}}
###############################################################################
###############################################################################
###############################################################################
[pycodestyle]
show_source = false
show_pep8 = false
count = true
###############################################################################
[coverage:run]
source = puresasl
branch = true
concurrency =
thread
multiprocessing
|