Show diff on Travis in check_doc_changes
This commit is contained in:
parent
397ca47efb
commit
f92ccd4893
@ -39,4 +39,9 @@ if code != 0:
|
|||||||
print()
|
print()
|
||||||
print('(Or you have uncommitted changes, in which case you can ignore '
|
print('(Or you have uncommitted changes, in which case you can ignore '
|
||||||
'this.)')
|
'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)
|
sys.exit(code)
|
||||||
|
2
tox.ini
2
tox.ini
@ -230,7 +230,7 @@ commands =
|
|||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
whitelist_externals = git
|
whitelist_externals = git
|
||||||
passenv = TRAVIS_PULL_REQUEST
|
passenv = TRAVIS TRAVIS_PULL_REQUEST
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user