GitLab CI runner 没有构建

GitLab CI runner doesn't build

我刚刚按照文档 https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md

安装了 gitlab-ci-multi-runner

我使用 public 服务器 ci.gitlab.com 并且运行器的注册似乎正常(运行器以绿灯出现)。 激活调试后,我可以看到运行器定期获取 CI 服务器。

但是当一个新的提交被推送时,没有构建完成。 一切都是绿色的:https://ci.gitlab.com/projects/4656 但没有完成测试...

我的 .gitlab-ci.yml 非常简单:

before_script:
  - apt install python3-pip
  - pip3 install -q -r requirements.txt
master:
  script: "make test"
  only:
    - master
script:
  - python setup.py test

顺便说一下,我可以找到任何错误消息,但我不知道去哪里搜索。

我对 CI 很了解,也许我遗漏了一个明显的观点。

试一试。这是假设您的 pyunit 测试位于工作目录中名为 runtests.py 的文件中。

before_script:
  - apt install python3-pip
  - pip3 install -q -r requirements.txt

master:
  script: "python runtests.py"
  only:
    - master