CI: Add build environment without UTF-8 locales to travis-ci

Preventing regressions like #285
This commit is contained in:
Wolfgang Walther
2020-07-20 13:57:06 +02:00
committed by GitHub
parent 8b758d4e7e
commit b80997eba6
3 changed files with 21 additions and 10 deletions

View File

@@ -8,10 +8,14 @@ python:
- 3.7
- 3.8
- nightly
env:
- REMOVE_LOCALES=false
- REMOVE_LOCALES=true
install:
- pip install pyyaml coveralls flake8 flake8-import-order doc8
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi
- pip install .
- if [[ $REMOVE_LOCALES = "true" ]]; then sudo rm -rf /usr/lib/locale/*; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then flake8 .; fi
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then doc8 $(git ls-files '*.rst'); fi