forked from python/python-docs-fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
20 lines (20 loc) · 888 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 poutils
- pospell --version
- powrap --version
- padpo --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" | 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_PATH=/tmp/cpython/; fi'
- 'if [ -n "$CHANGED_FILES" ]; then padpo -i $CHANGED_FILES 2>&1 | grep -v -Ff padpo.ignore || true; fi'