Skip to content

Commit 8c5d876

Browse files
committed
💚 check for changes found by moban
Re-instates check dropped in b8b61f8. Use --ignore-blank-lines because sphinx templates have trailing lines that are not wanted here, and 92b799a and others removed the custom handling of these, and moban doesnt yet have post-processors to handle this. git diff --ignore-blank-lines --exit-code still emits an exit code even if there was no suitable change. Workaround with a shell loop.
1 parent 78b672f commit 8c5d876

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sudo: false
2+
dist: xenial
23
language: python
34
python:
45
- 2.7

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ all: upstreaming
22

33
upstreaming:
44
moban -m mobanfile
5+
git diff
6+
git diff --ignore-blank-lines --exit-code
7+
git diff --ignore-blank-lines | while read line; do if [ "$line" ]; then exit 1; fi; done
58

69
lint: flake8 . --exclude=.moban.d,docs --builtins=unicode,xrange,long
710

0 commit comments

Comments
 (0)