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-15 22:42:25 +00:00
|
|
|
- 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"
|