mediacurrent / ci-tests

这些脚本是用于在持续集成服务器或本地测试Drupal站点的。


README

这些脚本是用于在持续集成服务器或本地测试Drupal站点的。

此包提供示例测试

 behat/behat-run.sh      Behavior Driven Development
 code-fixer.sh           PHP Code Beautifier and Fixer
 code-sniffer.sh         PHP CodeSniffer
 cypress                 Cypress End-to-End Testing
 pa11y/pa11y-review.sh   Pa11y Accessibility
 phpunit.sh              PHPUnit
 security-review.sh      Drupal 7 Security Review module

安装

composer require mediacurrent/ci-tests

可能需要在 composer.json 的仓库部分中定义此包

"repositories": [
    {
        "type": "vcs",
        "url": "git@bitbucket.org:mediacurrent/ci-tests.git"
    }
],

以下脚本用于新项目的设置

./vendor/mediacurrent/ci-tests/scripts/tests-init.sh

注意: 此脚本会将 ./vendor/mediacurrent/ci-tests/tests 目录复制到 ./tests。此脚本不会覆盖任何现有文件。

鸣谢