From b3ada6308bc992fd233929e93d58c6af478313e4 Mon Sep 17 00:00:00 2001 From: Harsha Narayana Date: Sat, 13 Jul 2019 13:20:13 +0530 Subject: [PATCH] fix: #1631: add doc test for travis CI Signed-off-by: Harsha Narayana --- .travis.yml | 12 ++++++++++++ tox.ini | 3 +++ 2 files changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8eff34cc..d304c701 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,24 +7,36 @@ matrix: include: - env: TOX_ENV=py36 python: 3.6 + name: "Python 3.6 with Extensions" - env: TOX_ENV=py36-no-ext python: 3.6 + name: "Python 3.6 without Extensions" - env: TOX_ENV=py37 python: 3.7 dist: xenial sudo: true + name: "Python 3.7 with Extensions" - env: TOX_ENV=py37-no-ext python: 3.7 dist: xenial sudo: true + name: "Python 3.7 without Extensions" - env: TOX_ENV=lint python: 3.6 + name: "Python 3.6 Linter checks" - env: TOX_ENV=check python: 3.6 + name: "Python 3.6 Package checks" - env: TOX_ENV=security python: 3.7 dist: xenial sudo: true + name: "Python 3.7 Bandit security scan" + - env: TOX_ENV=docs + python: 3.7 + dist: xenial + sudo: true + name: "Python 3.7 Documentation tests" install: - pip install -U tox - pip install codecov diff --git a/tox.ini b/tox.ini index daaeb7e6..d13dc67c 100644 --- a/tox.ini +++ b/tox.ini @@ -57,12 +57,15 @@ commands = bandit --recursive sanic --skip B404,B101 --exclude sanic/reloader_helpers.py [testenv:docs] +platform = linux2|darwin +whitelist_externals = make deps = sphinx>=2.1.2 sphinx_rtd_theme>=0.4.3 recommonmark>=0.5.0 docutils pygments + gunicorn commands = make docs-test