承接 mediacurrent/ci-scripts 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediacurrent/ci-scripts

最新稳定版本:2.12.3

Composer 安装命令:

composer require mediacurrent/ci-scripts

包简介

Scripts helpful for testing a Drupal site on a Continuous-Integration server, or locally.

README 文档

README

Drupal management tasks for Robo Task Runner

This package provides Robo tasks for the following vagrant commands:

    console                             Drupal Console command.
    drush                               Drush command.
    help                                Displays help for a command
    list                                Lists commands
   database
    database:import                     Database Import command.
   project
    project:create-drush-alias          Project task - Create Drush Alias.
    project:init                        Project Init task.
   release
    release:build                       Release Build command.
    release:deploy                      Release Deploy Command.
   site
    site:build                          Site Build command.
    site:install                        Site Install command.
    site:test                           Site Test command.
    site:update                         Site Update command.
   test
    test:php-unit-custom-modules-tests  Run PHPUnit Unit tests on custom modules.
    test:php-unit-tests                 Run all PHPUnit unit tests.
   theme
    theme:build                         Theme Build command.
    theme:compile                       Theme Compile command.
    theme:style-guide                   Theme Style Guide command.
    theme:watch                         Theme Watch command.
   vagrant
    vagrant:check                       Vagrant check - Install plugins, update box, check version.
   watch
    watch:custom-modules                Run tests on changes to custom modules.

Installation

composer require mediacurrent/ci-scripts

It may be necessary to define the package in the repositories section of composer.json:

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

Usage

<?php

class RoboFile extends \Robo\Tasks
{

    use \Mediacurrent\CiScripts\Task\loadTasks;

    ...

?>

Example

    public function databaseImport($database_file = 'latest.sql')
    {
        $this->taskDatabaseImport()
            ->databaseFile($database_file)
            ->run();
    }

Predefined Commands

<?php

class RoboFile extends \Robo\Tasks
{

    use \Mediacurrent\CiScripts\Task\loadTasks;
    use \Mediacurrent\CiScripts\Command\Console;
    use \Mediacurrent\CiScripts\Command\Drush;
    use \Mediacurrent\CiScripts\Command\Database;
    use \Mediacurrent\CiScripts\Command\Project;
    use \Mediacurrent\CiScripts\Command\Release;
    use \Mediacurrent\CiScripts\Command\Site;
    use \Mediacurrent\CiScripts\Command\Theme;
    use \Mediacurrent\CiScripts\Command\Vagrant;
    use \JoeStewart\RoboDrupalVM\Task\loadTasks;

    ...

?>

Now list the avaliable commands using

./vendor/bin/robo list

Credit

Thanks to Robo.li, greg-1-anderson and boedah for example robo code.

Additional Links

统计信息

  • 总下载量: 94.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-25