From 8f6885a140c512b81cc2efc903842d8c6aae34bd Mon Sep 17 00:00:00 2001 From: Akshar Raaj Date: Mon, 22 Dec 2014 17:37:44 +0530 Subject: [PATCH] Returned exit code 1 in case the project is not production ready. People might like to use this app in their build script. This change allow this app to be used with CI providers like travis which rely on exit code to tell whether there was any error. --- prodready/management/commands/is_it_ready.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prodready/management/commands/is_it_ready.py b/prodready/management/commands/is_it_ready.py index c8358ad..0b7d44d 100644 --- a/prodready/management/commands/is_it_ready.py +++ b/prodready/management/commands/is_it_ready.py @@ -24,6 +24,8 @@ def write_result(self, messages): def handle(self, *args, **options): messages = Validations().run(options) self.write_result(messages) + if messages: + exit(1) class Validations(object):