Skip to content

Commit acac93a

Browse files
committed
fix: Parallel tests and default LC_ALL for initdb
1 parent bf15a20 commit acac93a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@
258258
<plugin>
259259
<artifactId>maven-surefire-plugin</artifactId>
260260
<version>${maven-surefire-plugin.version}</version>
261+
<configuration>
262+
<environmentVariables>
263+
<LC_ALL>${env.LC_ALL}</LC_ALL><!-- needed by initdb -->
264+
</environmentVariables>
265+
<forkCount>1C</forkCount>
266+
</configuration>
261267
</plugin>
262268
<plugin>
263269
<artifactId>maven-pmd-plugin</artifactId>
@@ -336,6 +342,21 @@
336342
</build>
337343

338344
<profiles>
345+
<!-- prevent "initdb: error: invalid locale settings; check LANG and LC_* environment variables" -->
346+
<profile>
347+
<id>default-lc-all</id>
348+
<activation>
349+
<property>
350+
<name>!env.LC_ALL</name><!-- if LC_ALL is missing -->
351+
</property>
352+
<os>
353+
<family>Unix</family>
354+
</os>
355+
</activation>
356+
<properties>
357+
<env.LC_ALL>en_US.UTF-8</env.LC_ALL><!-- set default -->
358+
</properties>
359+
</profile>
339360
<profile>
340361
<id>release</id>
341362
<build>

0 commit comments

Comments
 (0)