diff options
author | Hynek Schlawack <hs@ox.cx> | 2015-10-16 20:18:38 +0200 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2015-10-17 11:27:56 +0200 |
commit | f0e6685b0880bbc30099c998454925ee8d39b14e (patch) | |
tree | ef387dada69f8fe9830fa1c9d9d289760fbbe5c1 /tox.ini | |
parent | 510a04eb7cb97fda2062c0c8b51724db2edbd855 (diff) | |
download | pyopenssl-git-f0e6685b0880bbc30099c998454925ee8d39b14e.tar.gz |
Move package into src
Prevents accidental imports when running tests.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -1,30 +1,29 @@ [tox] -envlist = {pypy,py26,py27,py33,py34,py35}{,-cryptographyMaster},pypi-readme,check-manifest,flake8,pyroma,docs +envlist = coverage-clean,{pypy,py26,py27,py33,py34,py35}{,-cryptographyMaster},pypi-readme,check-manifest,flake8,pyroma,docs,coverage-report [testenv] whitelist_externals = openssl passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH deps = - setuptools>=7.0 # older setuptools pollute CWD with egg files of dependencies coverage + pytest cryptographyMaster: git+https://github.com/pyca/cryptography.git setenv = - # Do not allowed the executing environment to pollute the test environment + # Do not allow the executing environment to pollute the test environment # with extra packages. PYTHONPATH= commands = openssl version python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))" python -c "import cryptography; print(cryptography.__version__)" - coverage run --branch --source=OpenSSL setup.py test - coverage report -m + coverage run --parallel -m pytest tests [testenv:flake8] deps = flake8 commands = - flake8 OpenSSL + flake8 src tests setup.py [testenv:pyroma] deps = @@ -49,3 +48,15 @@ deps = -rdocs-requirements.txt basepython = python2.7 commands = sphinx-build -W -b html doc doc/_build/html + +[testenv:coverage-clean] +deps = coverage +skip_install = true +commands = coverage erase + +[testenv:coverage-report] +deps = coverage +skip_install = true +commands = + coverage combine + coverage report |