Gitlab 持续集成 Meteor

Gitlab Continuous Integration Meteor

刚开始一个项目,想在Gitlab上有一个持续集成的环境。 我推出了一个简单的流星项目,它在我的本地机器上运行良好。 我在我的 gitlab 上写了这个-ci.yml

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

它运行良好,但是当管道到达测试线时它卡在 Started proxy 并且永远不会从那个点通过。

我也尝试过为 Meteor 使用几个 docker 图像,但 none 有效。

更新

我为 node:4.2.2 更改了 docker 基本图像,现在显示下一个错误。

Looks like MongoDB doesn't understand your locale settings

已解决

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