我刚开始一个项目,我希望在Gitlab上有一个持续的集成环境。 我推了一个简单的流星项目,它在我的本地机器上工作正常。 我在gitlab-ci.yml
上写了这个0
效果很好但是当管道到达测试线时,它会停留在已开始代理上,并且永远不会从该点开始。
我也尝试过Meteor的几个docker图像,但没有一个可行。
更新
我更改了node:4.2.2的docker base image,现在显示下一个错误。
image: fedora:24
before_script:
- dnf install tar npm python gyp gcc-c++ mongodb -y
- dnf group install "Development Tools" -y
- curl https://install.meteor.com/ | sh
- meteor npm install
stages:
- test
test:
stage: test
script:
- meteor test --once --driver-package dispatch:mocha-phantomjs --allow-superuser
答案 0 :(得分:1)
<强>解决强>
似乎与使用MongoDB的语言有关的问题。 只需添加以下行,项目就可以在GitLab上成功构建。
image: node:4.2.2
before_script:
- apt-get update -y
- apt-get install locales -y
- locale-gen en_US.UTF-8
- localedef -i en_GB -f UTF-8 en_US.UTF-8
- dpkg-reconfigure locales
- echo export LC_ALL=C >> ~/.bashrc
- source ~/.bashrc
- curl https://install.meteor.com/ | sh
- meteor npm install