diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-04-20 22:35:02 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-04-20 22:35:02 +0200 |
commit | eeb830e040dc7d3b28990e292e9674dbe07ca600 (patch) | |
tree | bdf8b9b9b2e8e2229d9d8ae456b14fa6d427e68e /scripts | |
parent | 391900cc995f51b59295c7c7592fda28f88c0f40 (diff) | |
download | qutebrowser-eeb830e040dc7d3b28990e292e9674dbe07ca600.tar.gz qutebrowser-eeb830e040dc7d3b28990e292e9674dbe07ca600.zip |
travis: Ignore doc changes when building a PR
Fixes #1441
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/check_doc_changes.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/dev/check_doc_changes.py b/scripts/dev/check_doc_changes.py index 85991cc08..d072bfb65 100755 --- a/scripts/dev/check_doc_changes.py +++ b/scripts/dev/check_doc_changes.py @@ -22,8 +22,15 @@ import sys import subprocess +import os code = subprocess.call(['git', '--no-pager', 'diff', '--exit-code', '--stat']) + +if os.environ.get('TRAVIS_PULL_REQUEST', 'false') != 'false': + if code != 0: + print("Docs changed but ignoring change as we're building a PR") + sys.exit(0) + if code != 0: print() print('The autogenerated docs changed, please run this to update them:') |