From 8fa3780ebed31bbaedc97a5f1c18a598c7af779f Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 15 Nov 2019 23:42:25 +0100 Subject: [PATCH] powrap and pospell on changed files only (#984) * powrap and pospell on changed files only * Only use po files. * heello.travis * yamlsyntax * Don't whine if there's nothing to do. --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1310a535..433de5fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ install: - pospell --version - powrap --version script: - - powrap --check --quiet *.po **/*.po - - pospell -p dict -l fr_FR *.po **/*.po - - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=4d1abedce9422473af2ac78047e55cde73208208 + - CHANGED_FILES="$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep '\.po$';:)" + - echo "$(printf "%s\n" "$CHANGED_FILES" | wc -l) files changed." + - echo "$CHANGED_FILES" | sed 's/^/- /' + - '[ -n "$CHANGED_FILES" ] && powrap --check --quiet $CHANGED_FILES' || echo "Nothing to check" + - '[ -n "$CHANGED_FILES" ] && pospell -p dict -l fr_FR $CHANGED_FILES' || echo "Nothing to check" + - '[ -n "$CHANGED_FILES" ] && make CPYTHON_CLONE=/tmp/cpython/ COMMIT=4d1abedce9422473af2ac78047e55cde73208208' || echo "Nothing to build"