[Patchew-devel] [PATCH] travis: Test migration cleanness

Fam Zheng posted 1 patch 6 years, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew-ci tags/patchew/20180309012617.19313-1-famz@redhat.com
.travis.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
[Patchew-devel] [PATCH] travis: Test migration cleanness
Posted by Fam Zheng 6 years, 9 months ago
So we don't forget to commit migration.

Signed-off-by: Fam Zheng <famz@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

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel