diff --git a/.travis.yml b/.travis.yml index b03efa6..9aa5388 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,14 @@ jobs: - { stage: lint, python: 3.7, env: TOXENV=pylint } - { stage: lint, python: 3.7, env: TOXENV=bandit } - { stage: lint, python: 3.7, env: TOXENV=readme } + - { stage: test, python: 3.7, env: TOKENV=pysnooper } + - { stage: test, python: 3.6, env: TOKENV=pysnooper } + - { stage: test, python: 3.5, env: TOKENV=pysnooper } + - { stage: test, python: 3.4, env: TOKENV=pysnooper } + - { stage: test, python: 2.7, env: TOKENV=pysnooper } + - { stage: test, python: 3.8-dev, env: TOKENV=pysnooper } + - { stage: test, python: pypy2.7-6.0, env: TOKENV=pysnooper } + - { stage: test, python: pypy3.5, env: TOKENV=pysnooper } - stage: deploy install: skip diff --git a/tox.ini b/tox.ini index 94e91ca..ff866c4 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ envlist = flake8 pylint bandit + pysnooper py{27,34,35,36,37,38,py,py3} readme requirements @@ -16,6 +17,7 @@ description = Unit tests deps = pytest python_toolbox + pysnooper commands = pytest setenv = # until python_toolbox is fixed @@ -54,6 +56,13 @@ deps = pip-tools commands = pip-compile --output-file requirements.txt requirements.in changedir = {toxinidir} +[testenv:pysnooper] +description = Ensure pip installs pysnooper +deps = pip +commands = + pip install pysnooper + pip show pysnooper + [bandit] exclude = .tox,build,dist,tests targets = . @@ -63,3 +72,8 @@ exclude = .tox,build,dist,pysnooper.egg-info [pytest] addopts = --strict + +[pysnooper] +commands = + pip install pysnooper + pip show pysnooper