diff --git a/.travis.yml b/.travis.yml index 9c9ad7a4e..c5a15140d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,10 @@ matrix: - { python: "3.6", env: DJANGO=2.0 } - { python: "2.7", env: TOXENV=lint } - { python: "2.7", env: TOXENV=docs } + - python: "2.7" + env: TOXENV=readme + addons: + apt_packages: pandoc exclude: - { python: "2.7", env: DJANGO=master } - { python: "2.7", env: DJANGO=2.0 } diff --git a/requirements/requirements-packaging.txt b/requirements/requirements-packaging.txt index f12d4af0e..76b15f832 100644 --- a/requirements/requirements-packaging.txt +++ b/requirements/requirements-packaging.txt @@ -9,3 +9,6 @@ transifex-client==0.11 # Pandoc to have a nice pypi page pypandoc + +# readme_renderer to check readme syntax +readme_renderer diff --git a/tox.ini b/tox.ini index e2c7c2feb..eea6bbf37 100644 --- a/tox.ini +++ b/tox.ini @@ -6,8 +6,8 @@ envlist = {py27,py34,py35}-django110, {py27,py34,py35,py36}-django111, {py34,py35,py36}-django20, - {py35,py36}-djangomaster - lint,docs + {py35,py36}-djangomaster, + lint,docs,readme, [travis:env] DJANGO = @@ -42,3 +42,8 @@ commands = mkdocs build deps = -rrequirements/requirements-testing.txt -rrequirements/requirements-documentation.txt + +[testenv:readme] +commands = ./setup.py check -rs +deps = + -rrequirements/requirements-packaging.txt