python-docs-fr/.travis.yml

18 lines
776 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:
- 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/^/- /'
2019-11-17 12:06:17 +00:00
- '[ -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"'