Skip to content

Commit

Permalink
Simply the test matrix in tox
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Cline <jcline@redhat.com>
  • Loading branch information
jeremycline authored and mergify[bot] committed Sep 27, 2018
1 parent de1e707 commit ef54919
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 69 deletions.
9 changes: 7 additions & 2 deletions .coveragerc
@@ -1,7 +1,12 @@
[run]
branch = True
include =
fedora_messaging/*
source =
fedora_messaging

[paths]
source =
fedora_messaging
.tox/*/site-packages/fedora_messaging

[report]
exclude_lines =
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
@@ -1,5 +1,5 @@
coverage
sphinx
pytest-cov
mock
twisted
pytest-twisted
Expand Down
73 changes: 7 additions & 66 deletions tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = lint,format,licenses,{py27,py34,py35,py36,py37}-pika{012,1}-unittest, {py27,py34,py35,py36,py37}-pika{012,1}-integration
envlist = lint,format,licenses,{py27,py34,py35,py36,py37}-pika{012,1}-{unittest,integration}

[testenv]
passenv = CI TRAVIS TRAVIS_*
Expand All @@ -8,72 +8,13 @@ deps =
pika1: git+https://github.com/pika/pika.git
-rdev-requirements.txt
sitepackages = False
whitelist_externals =
rm
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs}

[testenv:py27-pika1-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py34-pika1-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py35-pika1-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py36-pika1-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py37-pika1-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py27-pika012-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py34-pika012-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py35-pika012-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py36-pika012-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration

[testenv:py37-pika012-integration]
commands =
rm -rf htmlcov coverage.xml
pytest -vv --cov-config .coveragerc --cov=fedora_messaging --cov-report term \
--cov-report xml --cov-report html {posargs} fedora_messaging/tests/integration
coverage erase
unittest: coverage run -m pytest -vv fedora_messaging/tests/unit {posargs}
integration: coverage run -m pytest -vv fedora_messaging/tests/integration {posargs}
coverage report -m
coverage xml
coverage html

[testenv:docs]
changedir = docs
Expand Down

0 comments on commit ef54919

Please sign in to comment.