Show diff on Travis in check_doc_changes

This commit is contained in:
Florian Bruhin 2017-07-04 12:59:28 +02:00
parent 397ca47efb
commit f92ccd4893
2 changed files with 6 additions and 1 deletions

View File

@ -39,4 +39,9 @@ if code != 0:
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)

View File

@ -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 =