summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-06-24 17:17:44 +0200
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-06-27 13:30:51 +0200
commit53d9e19522fc1f907e7576a7dc992dcf21fe1eae (patch)
tree16d09a9a6846ed405ab12ce07a89b37977e0d394
parent4477dc249e563e60e126d4f5ad2692297a9584c1 (diff)
downloadgitlab-ce-unicode-ci.tar.gz
Use unicode in CIunicode-ci
-rwxr-xr-xscripts/prepare_build.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index 7e71a030901..ee00d88524b 100755
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -28,7 +28,12 @@ if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
# Try to install packages
retry 'apt-get update -yqqq; apt-get -o dir::cache::archives="vendor/apt" install -y -qq --force-yes \
- libicu-dev libkrb5-dev cmake nodejs postgresql-client mysql-client unzip'
+ libicu-dev libkrb5-dev cmake nodejs postgresql-client mysql-client unzip locales'
+
+ # Set locale to utf8
+ echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
+ locale-gen
+ export LC_ALL=en_US.UTF-8
cp config/database.yml.mysql config/database.yml
sed -i 's/username:.*/username: root/g' config/database.yml