Skip to content
Snippets Groups Projects
Commit 07e3ccb5 authored by Sarah Rubio's avatar Sarah Rubio :grinning:
Browse files

add env LANG, remove export LANG & LC_ALL

parent 953e68a1
No related branches found
No related tags found
2 merge requests!166From preprod to prod,!156Fix : CI avec lancement des tests unitaires
......@@ -11,6 +11,7 @@ variables:
APT_STATE_LISTS: "$CI_PROJECT_DIR/.apt/lists"
APT_CACHE_ARCHIVES: "$CI_PROJECT_DIR/.apt/archives"
cache:
- key:
files:
......@@ -21,6 +22,8 @@ cache:
- .apt/
test:
env:
LANG: "en_US.UTF-8"
stage: test
image: postgis/postgis:17-3.5
services:
......@@ -32,11 +35,8 @@ test:
- mkdir -p "${APT_CACHE_ARCHIVES}/partial"
- apt update -qy
- apt install -y apt-utils curl libgdal-dev make locales
- export LANG=en_US.UTF-8
- export LC_ALL=en_US.UTF-8
- locale-gen en_US
- locale-gen en_US.UTF-8
- update-locale LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
- update-locale LANG="en_US.UTF-8"
- export PGPASSWORD=$POSTGRES_PASSWORD
- psql --username $POSTGRES_USER --host postgres -d $POSTGRES_DB -c "ALTER ROLE anthology_django SET client_encoding TO 'utf8';"
- psql --username $POSTGRES_USER --host postgres -d $POSTGRES_DB -c "ALTER ROLE anthology_django SET default_transaction_isolation TO 'read committed';"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment