# Mock CI Service

> 原文：[https://docs.gitlab.com/ee/user/project/integrations/mock_ci.html](https://docs.gitlab.com/ee/user/project/integrations/mock_ci.html)

# Mock CI Service[](#mock-ci-service "Permalink")

**注意：仅当您处于开发环境中时，此服务才会列出！**

要设置模拟 CI 服务服务器，请响应以下端点

*   `commit_status`: `#{project.namespace.path}/#{project.path}/status/#{sha}.json`
    *   让您的服务返回`200 { status: ['failed'|'canceled'|'running'|'pending'|'success'|'success-with-warnings'|'skipped'|'not_found'] }`
    *   如果服务返回 404，则将其解释为`pending`
*   `build_page`: `#{project.namespace.path}/#{project.path}/status/#{sha}`
    *   构建链接到的位置，是否实施无关紧要

有关模拟 CI 服务器的示例，请参见[`gitlab-org/gitlab-mock-ci-service`](https://gitlab.com/gitlab-org/gitlab-mock-ci-service)