在将应用程序部署到服务器上之前,我使用这个bitbucket-pipelines.yml文件来测试它。在安装依赖项之后,我们缺少了nl_NL区域设置。我们使用以下文件:
bitbucket-管道.:
image: php:7.2.6
pipelines:
default:
- step:
name: PHPUnit
caches:
- composer
script:
- apt-get update && apt-get install -y unzip git zlib1g-dev libicu-dev g++ locales
- locale-gen && locale-gen nl_NL
- echo "nl_NL UTF-8" >> /etc/locale.gen && echo "en_EN UTF-8" >> /etc/locale.gen && echo "enUS UTF-8" >> /etc/locale.gen && echo "en_GB UTF-8" >> /etc/locale.gen
- locale -a安装后的地区-a输出如下:
locale -a
<1s
+ locale -a
C
C.UTF-8
POSIX我确实希望在这个命令中使用nl_NL语言环境。这将导致测试失败。如何纠正此错误?
发布于 2018-07-02 11:27:07
您需要更改命令的顺序。首先,将nl_NL UTF-8 (以及您需要的任何东西)添加到/etc/locale.gen中,然后运行locale-gen。
https://stackoverflow.com/questions/51134024
复制相似问题