Skip to content

Commit 76596ab

Browse files
.gitlab-ci.yml: override locale to en_US.UTF-8 during build.
1 parent de38168 commit 76596ab

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ stages:
3131

3232
test:
3333
stage: test
34-
tags: [ docker, x64 ]
34+
tags: [ docker, linux, x64 ]
35+
variables:
36+
# CentOS 7 defaults to ASCII, use a UTF-8 compatible locale so UTF-8 tests that interact with file system work.
37+
LC_ALL: "en_US.UTF-8"
3538
before_script:
3639
# Print Gradle and JVM version info
3740
- ./gradlew -version
@@ -75,7 +78,10 @@ test-macos:
7578
# Address sanitizer is only available on Linux runners (see script).
7679
.test-asan-template:
7780
extends: .test-template
78-
tags: [ docker, x64 ]
81+
tags: [ docker, linux, x64 ]
82+
variables:
83+
# CentOS 7 defaults to ASCII, use a UTF-8 compatible locale so UTF-8 tests that interact with file system work.
84+
LC_ALL: "en_US.UTF-8"
7985
script:
8086
# Note: do not run check task as it includes SpotBugs.
8187
- ./ci/test-with-asan.sh $GITLAB_REPO_ARGS $VERSION_ARGS clean :tests:objectbox-java-test:test

0 commit comments

Comments
 (0)