From 08917e08c29c46d7799d1eb8f3bda114e08fa20e Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 15 Dec 2016 15:13:21 +0800 Subject: [PATCH] Make Travis-CI pre-commit check more readable. --- paddle/scripts/travis/precommit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/travis/precommit.sh b/paddle/scripts/travis/precommit.sh index 5ad84f1821..7a59b1131d 100755 --- a/paddle/scripts/travis/precommit.sh +++ b/paddle/scripts/travis/precommit.sh @@ -12,6 +12,9 @@ cd .. export PATH=/usr/bin:$PATH pre-commit install clang-format --version -pre-commit run -a + +if ! pre-commit run -a ; then + git diff --exit-code +fi trap : 0 -- GitLab