From 03d26dccc72c773283dece6781bc2daf54b4d914 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 16 Jul 2020 12:10:10 +0200 Subject: [PATCH] Add build environment without UTF-8 locales to travis-ci Preventing regressions like #285 --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 44ea648..f07b417 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 ]]; then 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