python-docs-fr/.travis.yml

19 lines
778 B
YAML
Raw Normal View History

2018-07-23 09:28:48 +00:00
language: python
dist: xenial
python: 3.7
2018-07-23 22:03:48 +00:00
before_install:
- sudo apt-get update
- sudo apt-get install -y hunspell hunspell-fr-comprehensive
2018-07-23 22:03:48 +00:00
install:
- pip install pospell "powrap>=0.3.0"
- pospell --version
- powrap --version
2018-07-23 09:28:48 +00:00
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$")" ;:'
- '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'