Skip to content

Commit

Permalink
don't build dynamic docs on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Jun 21, 2015
1 parent 1981878 commit 71147e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/build_generated_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def build_runner_examples():
output = e.output
results[name] = format_cmd_output(cmd_str, output, name)
tmpl = tmpl.format(**results)

# write out the final .rst
with open(os.path.join(my_dir, 'source', 'cli_usage.rst'), 'w') as fh:
fh.write(tmpl)
Expand Down Expand Up @@ -232,6 +232,9 @@ def build_docs():
Trigger rebuild of all documentation that is dynamically generated
from awslimitchecker.
"""
if os.environ.get('CI', None) is not None:
print("Not building dynamic docs in CI environment")
raise SystemExit(0)
logger.info("Beginning build of dynamically-generated docs")
logger.info("Instantiating AwsLimitChecker")
c = AwsLimitChecker()
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ recreate = True

[testenv:docs]
# this really just makes sure README.rst will parse on pypi
passenv = CI TRAVIS* CONTINUOUS_INTEGRATION
deps =
docutils
pygments
Expand Down

0 comments on commit 71147e0

Please sign in to comment.