Skip to content

Commit

Permalink
tox runs no tests (#23)
Browse files Browse the repository at this point in the history
* tox runs no tests

Fixes #22

* mention pypy too

* be more specific about pypy version

* be more specific about pypy version

* be even more explicit about pypy version
  • Loading branch information
Peter Bengtsson authored Dec 21, 2018
1 parent 590daee commit b8eb534
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ sudo: false
language: python
branches:
only:
- master
- master
python:
- '2.7'
- '3.5'
- '3.6'
- pypy
- "2.7"
- "3.5"
- "3.6"
- "pypy3.5"
cache: pip
install:
- pip install tox-travis
- pip install tox-travis
script: tox -v
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
26 changes: 17 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ usedevelop = True
minversion = 1.8
envlist =
lint-py36,
readme-py27,
docs-py27-dj{18,110},
readme-py36,
docs-py36,
py27-django{18,19,110,111},
py35-django{18,19,110,111,20,21},
py36-django{18,19,110,111,20,21},
pypy35-django{18,19,110,111,20,21},
skip_missing_interpreters = True

[testenv]
basepython =
py27: python2.7
py35: python3.5
py36: python3.6
pypy: pypy
pypy35: pypy3.5
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
Expand All @@ -29,15 +30,22 @@ deps =
django111: Django >=1.11, <2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1
docs: sphinx
commands =
python --version
tests: pytest {posargs:tests}
pytest {posargs:tests}

[testenv:docs-py36]
deps =
sphinx
commands =
docs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html

[testenv:readme-py27]
commands = python setup.py check -r -s
deps = readme_renderer
[testenv:readme-py36]
deps =
twine
readme_renderer[md]
commands =
python setup.py sdist
twine check dist/*

[testenv:lint-py36]
extras = dev
Expand Down

0 comments on commit b8eb534

Please sign in to comment.