Looks like we've been to fast on integrating TRAVIS_COMMIT_RANGE. (#1017)

This commit is contained in:
Julien Palard 2019-11-18 22:12:26 +01:00 committed by GitHub
parent 26a76d4b14
commit 9f8c7c2022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,10 @@ install:
- pospell --version
- powrap --version
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" | wc -l)"'
- 'printf -- "- %s\n" $CHANGED_FILES | grep -v "^- $" || :'
- '[ -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"'
- 'powrap --check --quiet *.po */*.po'
- 'pospell -p dict -l fr_FR *.po */*.po'
- 'make CPYTHON_CLONE=/tmp/cpython/ COMMIT=4d1abedce9422473af2ac78047e55cde73208208'