python-docs-fr/.travis.yml
Julien Palard 8fa3780ebe 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.
2019-11-15 23:42:25 +01:00

18 lines
776 B
YAML

language: python
dist: xenial
python: 3.7
before_install:
- sudo apt-get update
- sudo apt-get install -y hunspell hunspell-fr-comprehensive
install:
- pip install pospell "powrap>=0.3.0"
- pospell --version
- powrap --version
script:
- 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"