【问题标题】:phpunit failed, gitlab-ci still passedphpunit 失败,gitlab-ci 还是通过了
【发布时间】:2018-07-24 15:28:56
【问题描述】:
  • 我使用 gitlab-ci 和 gitlab-runner 在 docker 容器中运行 phpunit。
  • 当 phpunit 出错或者即使我在脚本中添加了exit 1,管道仍然显示构建成功。
  • 图片显示sh exited 1而不是ERROR: Job failed: exit status 1
  • 我应该怎么做才能退出工作而不只是sh?

.gitlab-ci.yml

image: d:latest
stages:
 - test
run_test:
 stage: test
 script:
  - cd src/Test
  - phpunit ../Test
 except:
  - master
  - test

【问题讨论】:

  • 请分享您的 gitlab-ci.yml 文件的特定部分。

标签: phpunit gitlab-ci


【解决方案1】:

我认为问题是稍后你有sh exited 0

【讨论】:

    猜你喜欢
    • 2019-05-29
    • 1970-01-01
    • 2017-05-07
    • 1970-01-01
    • 2012-12-17
    • 2015-07-23
    • 2020-09-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多