2018-07-23 09:28:48 +00:00
|
|
|
language: python
|
2019-02-26 15:14:27 +00:00
|
|
|
dist: xenial
|
2019-08-13 08:40:18 +00:00
|
|
|
python: 3.7
|
2018-07-23 22:03:48 +00:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get update
|
2018-10-06 15:19:50 +00:00
|
|
|
- sudo apt-get install -y hunspell hunspell-fr-comprehensive
|
2018-07-23 22:03:48 +00:00
|
|
|
install:
|
2019-03-14 21:43:14 +00:00
|
|
|
- pip install pospell "powrap>=0.3.0"
|
2018-07-29 21:53:47 +00:00
|
|
|
- pospell --version
|
2019-03-14 21:43:14 +00:00
|
|
|
- powrap --version
|
2018-07-23 09:28:48 +00:00
|
|
|
script:
|
2019-11-22 12:34:40 +00:00
|
|
|
- '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$")" ;:'
|
|
|
|
- '[ -n "$CHANGED_FILES" ] && printf -- "- %s\n" $CHANGED_FILES ;:'
|
2019-12-05 20:31:25 +00:00
|
|
|
- '[ -n "$CHANGED_FILES" ] && powrap --check --quiet $CHANGED_FILES || :'
|
|
|
|
- '[ -n "$CHANGED_FILES" ] && pospell -p dict -l fr_FR $CHANGED_FILES || :'
|
2019-12-05 22:41:32 +00:00
|
|
|
- '[ -n "$CHANGED_FILES" ] && make CPYTHON_CLONE=/tmp/cpython/ COMMIT=e21aa61e96f8343200e765d119ebe778873a6bf1 || :'
|