[Patchew-devel] [PATCH] travis: Test migration cleanness
Fam Zheng
famz at redhat.com
Fri Mar 9 01:26:17 UTC 2018
So we don't forget to commit migration.
Signed-off-by: Fam Zheng <famz at redhat.com>
---
.travis.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 954dee1..2e1cf8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,4 +7,6 @@ python:
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
-script: export PYTHONPATH=$PWD && ./manage.py migrate && ./manage.py test tests
+script:
+ - export PYTHONPATH=$PWD && ./manage.py migrate && ./manage.py test tests
+ - export PYTHONPATH=$PWD && ./manage.py makemigrations && ! git ls-files . --exclude-standard --others | grep .
--
2.14.3
More information about the Patchew-devel
mailing list