【问题标题】:How to integrate circle CI with magento?如何将circle CI与magento集成?
【发布时间】:2015-09-11 09:09:11
【问题描述】:

我尝试将圆形 CI 与 magento 集成,并且我创建了 Phpunit 测试来运行此测试,在 magento 中,这些测试按预期工作,但在圆形 CI phpunit 中显示错误。

在我给出的 circle.yml 文件中

machine:
  php:
    version: 5.4.5
dependencies:
   pre:
     - cd tests/unit
     - wget https://phar.phpunit.de/phpunit.phar
     - chmod +x phpunit.phar
     - sudo mv phpunit.phar /usr/local/bin/phpunit
   post:
     - cd tests/unit
     - phpunit

Magento 单元测试遵循 URL http://www.atwix.com/magento/php-unit-testing/

【问题讨论】:

  • 看起来下面的答案是正确的,提供测试文件的路径作为 phpunit 的参数

标签: magento integration-testing circleci


【解决方案1】:

也许您需要通过测试才能像 https://phpunit.de/getting-started.html 中描述的那样作为 phpunit 的参数运行?

【讨论】:

  • 哦,顺便说一句,我在 CircleCI 工作,如果您得到我们的支持,您可以获得更多帮助。