mediacurrent / ci-scripts
Scripts helpful for testing a Drupal site on a Continuous-Integration server, or locally.
2.10.0
2024-11-19 15:49 UTC
Requires
- consolidation/robo: ^3.0 || ^4.0 || ^5.0
- joestewart/robo-drupalvm: ^2.0
- joestewart/robo-vagrant: ^1.2.0
Requires (Dev)
- phpro/grumphp-shim: ^1.0.0
- phpunit/phpunit: >=4.4
- squizlabs/php_codesniffer: ^3.6
- dev-master
- 2.10.0
- 2.9.4
- 2.9.3
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.1
- 2.8.0
- 2.7.5
- 2.7.4
- 2.7.3
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.3
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.19.0
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18.0
- 1.17.0
- 1.16.1
- 1.16.0
- 1.15.0
- 1.14.2
- 1.14.1
- 1.14.0
- 1.13.2
- 1.13.1
- 1.13.0
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.1
- 1.11.0
- 1.10.0
- 1.9.1
- 1.9.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.7.7
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-Kevin-Basarab/readmemd-edited-online-with-bitbucket-1732034395479
- dev-MCT-1952
- dev-update-project-setup
- dev-feature/MCT-1331--template-theme
- dev-feature/MCT-787--settings-local-php
- dev-feature/MCT-361--drupalvm-package
- dev-feature/MCT-344--varnish-ssl
- dev-develop
- dev-feature/MCT-327--grumphp
- dev-feature/MCT-39
- dev-feature/MCT-252-release-repo-clone
- dev-feature/chris/mct-218--update-drush-alias-template-code-standards
- dev-feature/MCT-181--robo-1
- dev-patch/chris/mct-189--local-drush-does-not-recognize-drupal-root
- dev-feature/release-build-adj
- dev-feature/MCT-73-site-import
- dev-feature/MCT-60--robo
This package is auto-updated.
Last update: 2024-11-19 17:06:14 UTC
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.