From 60aa1583414412081e6f01b174dbbdcf5a9e4af5 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Wed, 15 Jan 2020 18:07:39 +0100 Subject: [PATCH] circle: set locale to a UTF-8 variant so python doesn't fall back to ascii --- .circleci/config.yml | 5 +++-- Makefile | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bcf7e4b..de8bbbe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,11 +10,12 @@ jobs: environment: - PYTHONIOENCODING: utf-8 steps: - - run: apt-get update ; apt-get install -y make git curl python3 python3-pip wget imagemagick + - run: apt-get update ; apt-get install -y make git curl python3 python3-pip wget imagemagick locales + - run: locale-gen "en_US.UTF-8"; update-locale LC_ALL="en_US.UTF-8" - checkout - run: make install PIP_INSTALL="pip3 install" - run: pip3 install -r requirements-test.txt - - run: make coverage + - run: make coverage LC_ALL=en_US.utf8 - codecov/upload workflows: diff --git a/Makefile b/Makefile index 0e0c298..5a37869 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +export # export variables to subshells PIP_INSTALL = pip3 install GIT_CLONE = git clone PYTHON = python3