Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fa3780

Browse files
JulienPalardSeluj78
authored andcommitted
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.
1 parent 1cc1bcf commit 8fa3780

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ install:
99
- pospell --version
1010
- powrap --version
1111
script:
12-
- powrap --check --quiet *.po **/*.po
13-
- pospell -p dict -l fr_FR *.po **/*.po
14-
- make CPYTHON_CLONE=/tmp/cpython/ COMMIT=4d1abedce9422473af2ac78047e55cde73208208
12+
- CHANGED_FILES="$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep '\.po$';:)"
13+
- echo "$(printf "%s\n" "$CHANGED_FILES" | wc -l) files changed."
14+
- echo "$CHANGED_FILES" | sed 's/^/- /'
15+
- '[ -n "$CHANGED_FILES" ] && powrap --check --quiet $CHANGED_FILES' || echo "Nothing to check"
16+
- '[ -n "$CHANGED_FILES" ] && pospell -p dict -l fr_FR $CHANGED_FILES' || echo "Nothing to check"
17+
- '[ -n "$CHANGED_FILES" ] && make CPYTHON_CLONE=/tmp/cpython/ COMMIT=4d1abedce9422473af2ac78047e55cde73208208' || echo "Nothing to build"

0 commit comments

Comments
 (0)