From d6291ad7b200dace983664b2783c553c74e9c403 Mon Sep 17 00:00:00 2001 From: Thomas Schultz Date: Fri, 22 Jul 2016 14:45:13 -0400 Subject: [PATCH] Switch to using tox for calling json docs update script. --- .travis.yml | 2 +- tox.ini | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 800c6f5cf885..85f146dd3715 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ script: - tox -e lint - tox -e system-tests - tox -e system-tests3 - - scripts/update_json_docs.sh + - tox -e json-docs after_success: - tox -e coveralls diff --git a/tox.ini b/tox.ini index 53f868db8ed4..006dbffe3ec5 100644 --- a/tox.ini +++ b/tox.ini @@ -112,11 +112,18 @@ basepython = python2.7 commands = python -c "import shutil; shutil.rmtree('docs/_build/json', ignore_errors=True)" - python scripts/generate_json_docs.py + {toxinidir}/scripts/update_json_docs.sh deps = parinx pdoc Sphinx +passenv = + TRAVIS_TAG + TRAVIS_BRANCH + TRAVIS_PULL_REQUEST + GH_OWNER + GH_OAUTH_TOKEN + GH_PROJECT_NAME setenv = PYTHONPATH = {toxinidir}/_testing