From 4355078142cced10979d2e2127e8e4084411a49a Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 11 Dec 2019 16:58:07 +0100 Subject: [PATCH] FIX: Use ifs instead of inline ternaries (#1058) Because true && false || true is true so travis never reports failures. --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index db0176d9..9ed95f5a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ script: - 'printf "%s\n" "$TRAVIS_COMMIT_RANGE"' - 'CHANGED_FILES="$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep "\.po$")" ;:' - 'printf "%s files changed.\n" "$(printf "%s" "$CHANGED_FILES" | grep -c "po$")" ;:' - - '[ -n "$CHANGED_FILES" ] && printf -- "- %s\n" $CHANGED_FILES ;:' - - '[ -n "$CHANGED_FILES" ] && powrap --check --quiet $CHANGED_FILES || :' - - '[ -n "$CHANGED_FILES" ] && pospell -p dict -l fr_FR $CHANGED_FILES || :' - - '[ -n "$CHANGED_FILES" ] && make CPYTHON_CLONE=/tmp/cpython/ || :' + - 'if [ -n "$CHANGED_FILES" ]; then printf -- "- %s\n" $CHANGED_FILES; fi' + - 'if [ -n "$CHANGED_FILES" ]; then powrap --check --quiet $CHANGED_FILES; fi' + - 'if [ -n "$CHANGED_FILES" ]; then pospell -p dict -l fr_FR $CHANGED_FILES; fi' + - 'if [ -n "$CHANGED_FILES" ]; then make CPYTHON_CLONE=/tmp/cpython/; fi'