hammer / magento2-configurator
此软件包最新版本(1.4.2)没有提供许可信息。
这是一个来自 CTIDigital 的 configurator 仓库的分支。使用文件来持续配置 magento
1.4.2
2018-08-17 21:03 UTC
Requires
- firegento/fastsimpleimport: 1.1.0
- symfony/yaml: >2.8.0
Requires (Dev)
- phpmd/phpmd: ^2.6
- phpunit/phpunit: 4.1.0
- satooshi/php-coveralls: ^1.0
- sebastian/phpcpd: 2.0.0
- squizlabs/php_codesniffer: 1.5.3
- dev-develop
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 0.21.1
- 0.21.0
- 0.20.0
- 0.19.6
- 0.19.5
- 0.19.4
- 0.19.3
- 0.19.1
- 0.19.0
- 0.18.0
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.2
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.6
- 0.5.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
- dev-2.2-alpha
- dev-tiered-pricing-component
- dev-tax-rule-deadlock-workaround
- dev-fix-attribute-sets-using-codes
- dev-2.1-develop
- dev-travis-fix
- dev-master
- dev-paragraphs-in-product-descriptions
- dev-prevent-tax-rule-deadlocks
- dev-customer-import-improvements
- dev-product-refactor
- dev-customers-and-groups
This package is auto-updated.
Last update: 2024-09-24 23:11:07 UTC
README
这是一个由 CTI Digital 初始创建的 Magento 模块,用于通过文件创建和维护数据库变量。此模块旨在为 Magento 开发者的工作流程带来以下好处
- 从头开始安装 Magento,并准备重要的数据库配置。
- 使用您自己的版本控制系统与其他同事共享和协作配置。
- 使用您自己的版本控制系统保留配置的版本。
- 根据您开发的环境分割您的配置。
如果您想了解更多关于 configurator 的背景信息,请观看 Raj Chevli 在曼彻斯特的 Mage Titans 上的闪电演讲,链接在 YouTube。
这是一个正在进行中的项目,绝对不适用于生产环境(甚至可能也不适用于开发环境)。
本地测试开发
如果您正在贡献此模块,请运行以下命令以增加 Travis CI 对您的代码的喜爱程度。这些测试包括 PHP Code Sniffer、PHP Mess Detector、PHP Copy and Paste Detector、PHP Unit
php vendor/bin/phpcs --standard=PSR2 vendor/ctidigital/magento2-configurator/Model/ vendor/ctidigital/magento2-configurator/Console/ vendor/ctidigital/magento2-configurator/Test/ vendor/ctidigital/magento2-configurator/Api/ vendor/ctidigital/magento2-configurator/Component/ vendor/ctidigital/magento2-configurator/Exception/
php vendor/bin/phpmd vendor/ctidigital/magento2-configurator/Model/,vendor/ctidigital/magento2-configurator/Console/,vendor/ctidigital/magento2-configurator/Test/,vendor/ctidigital/magento2-configurator/Api/,vendor/ctidigital/magento2-configurator/Component/,vendor/ctidigital/magento2-configurator/Exception/ text cleancode,codesize,controversial,design,naming,unusedcode
php vendor/bin/phpcpd vendor/ctidigital/magento2-configurator/Model/ vendor/ctidigital/magento2-configurator/Console vendor/ctidigital/magento2-configurator/Test/ vendor/ctidigital/magento2-configurator/Api/ vendor/ctidigital/magento2-configurator/Component/ vendor/ctidigital/magento2-configurator/Exception/
php vendor/bin/phpunit vendor/ctidigital/magento2-configurator/Test/Unit/
集成测试
- 配置您的 Magento 集成测试环境。
- 将以下 XML 添加到 dev/tests/integration/phpunit.xml.dist
<testsuite name="magento2-configurator">
<directory>../../../vendor/ctidigital/magento2-configurator/Test/Integration</directory>
</testsuite>
- 您可以从命令行运行测试
/dev/tests/integration$ ../../../vendor/bin/phpunit --testsuite "magento2-configurator"
- 您还可以将 magento PHP 开发者工具添加到您的路径中,这样您就不需要指定 phpunit 的位置
export PATH=$PATH:/var/www/magento2/vendor/bin
单元测试
如果您正在开发新的组件,请确保您有相应的单元测试,该测试扩展 ComponentAbstractTestCase,这将测试您的组件是否有必需的功能。同时还包括与您的组件一起工作的样本文件
Travis
我们还使用 Travis CI 自动化测试过程的一部分(我们仍在寻找更多要添加的内容!)它测试以下内容
- CodeSniffer
- MessDetector
- 复制和粘贴检测
- 单元测试
- 运行 Configurator(我们希望在这些版本上运行它)
- 最新 3 个小版本
- 最新发布候选版本(允许失败)
入门指南
- 在
<mage_root>/app/etc/中创建一个master.yaml文件。(见Samples/master.yaml) - 启用模块
CtiDigital_Configurator、FireGento_FastSimpleImport。 - 运行
bin/magento configurator:run --env="<environment>"
用法
- 列出可用组件
bin/magento configurator:list - 运行单个组件
bin/magento configurator:run --env="<environment>" --component="config" - 额外日志
bin/magento configurator:run --env="<environment>" -v
组件待办事项路线图
许可
MIT