phpunit失败了,gitlab-ci仍然通过

时间:2018-01-03 06:57:42

标签: phpunit gitlab-ci

  • 我使用gitlab-ci和gitlab-runner在docker容器中运行phpunit。
  • 当phpunit出现错误或者即使我在脚本中添加exit 1时,管道仍显示构建成功。
  • 图片显示sh exited 1而不是ERROR: Job failed: exit status 1
  • 我该怎样做才能退出工作?不仅仅是sh?

enter image description here

.gitlab-ci.yml

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

1 个答案:

答案 0 :(得分:0)

我认为这个问题后来你有sh exited 0

相关问题