Skip to content

Commit

Permalink
Show diff on Travis in check_doc_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Jul 4, 2017
1 parent 397ca47 commit f92ccd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions scripts/dev/check_doc_changes.py
Expand Up @@ -39,4 +39,9 @@
print()
print('(Or you have uncommitted changes, in which case you can ignore '
'this.)')
if 'TRAVIS' in os.environ:
print()
print("travis_fold:start:gitdiff")
subprocess.call(['git', '--no-pager', 'diff'])
print("travis_fold:end:gitdiff")
sys.exit(code)
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -230,7 +230,7 @@ commands =
[testenv:docs]
basepython = python3
whitelist_externals = git
passenv = TRAVIS_PULL_REQUEST
passenv = TRAVIS TRAVIS_PULL_REQUEST
deps =
-r{toxinidir}/requirements.txt
commands =
Expand Down

0 comments on commit f92ccd4

Please sign in to comment.