Skip to content

Instantly share code, notes, and snippets.

View enzolutions's full-sized avatar
:octocat:

enzo - Eduardo Garcia enzolutions

:octocat:
View GitHub Profile
@enzolutions
enzolutions / readme.md
Last active June 10, 2019 22:20 — forked from jmolivas/readme.md
Automate DrupalConsole release process

Automate DrupalConsole release process

This script run the following tasks on multiple repos from the CLI.

  • Creates a new tag.
  • Push new created tag.
  • Create a new release.
  • Build the phar file. (only for drupal-console-launcher)
  • Upload the phar file (only for drupal-console-launcher)

To execute this proces is required to install

define('WP_SETUP_CONFIG', true);
if(!defined( 'ABSPATH' ) ) {
define('ABSPATH', $this->appRoot . "/");
}
define('WPINC', 'wp-includes' );
$this->loadLegacyFile('wp-includes/functions.php' );
$this->loadLegacyFile('wp-includes/load.php' );
<?php
// ** MySQL settings ** //
define( 'DB_NAME', $dbName);
define( 'DB_USER', $dbUser);
define( 'DB_PASSWORD', $dbPass );
define( 'DB_HOST', $dbHost );
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
-- Config Start --
drupal generate:module --module="Santa Fe" --machine-name="santa_fe" --module-path="/modules/custom" --description="No, I can't speak French" --core="8.x" --package="France" --module-file --composer --dependencies="user" --no-interaction
drupal module:install santa_fe
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail me@example.com
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Paris Saint-Germain" --machine-name="psg" --module-path="/modules/custom" --description="No, I can't speak French" --core="8.x" --package="France" --module-file --composer --dependencies="user" --no-interaction
drupal module:install psg
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail me@example.com
drupal config:debug system.site
@enzolutions
enzolutions / gist:385972603b7bfe839f24836c78a50997
Created July 18, 2016 11:37
DrupalGov 16 - Drupal Console Overview
-- Config Start --
drupal generate:module --module="Redskins" --machine-name="redskins" \
--module-path="/modules/custom" --description="No, I can't understand NFL" \
--core="8.x" --package="NFL" --module-file --composer --dependencies="user" \
--no-interaction
drupal module:install redskins
drupal config:debug
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Gremio" --machine-name="gremio" --module-path="/modules/custom" --description="No, I can't speak Portuguese" --core="8.x" --package="FISL17" --module-file --composer --dependencies="user" --no-interaction
drupal module:install gremio
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail me@example.com
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Royal Challengers" --machine-name="royal_challengers" --module-path="/modules/custom" --description="No, I can't speak Hindi" --core="8.x" --package="AFL" --module-file --composer --dependencies="user" --no-interaction
drupal module:install royal_challengers
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail me@example.com
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Royal Challengers" --machine-name="royal_challengers" --module-path="/modules/custom" --description="No, I can't speak Hindi" --core="8.x" --package="AFL" --module-file --composer --dependencies="user" --no-interaction
drupal module:install royal_challengers
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail me@example.com
drupal config:debug system.site
<?php
/**
* @file
* Contains \Drupal\AppConsole\Command\SiteInstallCommand.
*/
namespace Drupal\Console\Command;
use Symfony\Component\Console\Input\InputArgument;