Build Drupal Project based on Drush Make Everright Chen
About Me ● Developer Master in CI&T ● Drupal (8+ years) ● Drupal, Magento, Wordpress, osCommerce ● PHP, Python, Java, Bash, Ruby, Perl, SQL, Javascript, CSS, ... ● Acquia Certified Developer, MCSE, MCDBA, RCE ● Github: https://github.com/everright
Agenda ● Drush ● Drush Make ● Build ● Drupal in CI&T
Drush (Drupal + Shell) Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. Drush can be extended by 3rd party command files. ● Drush documents ● Drush commands
Drush Versions Drush Version Branch PHP Compatible Drupal Versions Drush 8 master 5.4.5+ D6, D7, D8 Drush 7 7.x 5.3.0+ D6, D7 Drush 6 6.x 5.3.0+ D6, D7 Drush 5 5.x 5.2.0+ D6, D7 Drush 4 4.x 5.2.0+ D5, D6, D7 Drush 3 3.x 5.2.0+ D5, D6
Drupal 7.30 Drupal 7.37
make
YAML
core = 7.x ; Latest drupal version projects[] = drupal ; Special version projects[drupal][type] = core projects[drupal][version] = 7.36 ; Use Pressflow instead of Drupal core projects[pressflow][type] = "core" projects[pressflow][download][type] = "file" projects[pressflow][download][url] = "http://launchpad.net/pressflow/6.x/6.15.73/+download/pressflow-6.15.73.tar.gz" ; Git clone of Drupal 7.x. Requires the `core` property to be set to 7.x. projects[drupal][type] = "core" projects[drupal][download][type] = git projects[drupal][download][url] = http://git.drupal.org/project/drupal.git Core
; Drush make allows a default sub directory for all contributed projects. defaults[projects][subdir] = contrib Defaults
; Latest views module projects[] = views ; If you want to retrieve a specific version of a project projects[views] = 3.10 ; Check out the project from Git projects[views][type] = module projects[views][download][type] = git projects[views][download][url] = http://git.drupal.org/project/views.git ; From branch projects[views][download][branch] = "7.x-1.x" ; From tag projects[views][download][tag] = "7.x-1.0" ; From revision projects[views][download][revision] = ”2fe932c” ; If you want to install a module into a subdirectory projects[views][subdir] = "contrib" Projects
; Themes projects[zen][type] = "theme" projects[zen][version] = "5.5" projects[zen][subdir] = "contrib" Themes
; CKEditor libraries[ckeditor][download][type]= "get" libraries[ckeditor][download][url] = "https://github.com/ckeditor/ckeditor-releases/archive/4.3.1/full.zip" libraries[ckeditor][directory_name] = "ckeditor" ;libraries[ckeditor][destination] = "module/contrib/ckeditor" (Default: libraries) ;libraries[ckeditor][overwrite] = TRUE ; Colorbox libraries[colorbox][download][type]= "git" libraries[colorbox][download][url] = "git@github.com:jackmoore/colorbox.git" libraries[colorbox][download][tag] = "1.5.4" libraries[colorbox][directory_name] = "colorbox" ; Memcache status and rename libraries[memcache][download][type]= "get" libraries[memcache][download][url] = "http://git.php.net/?p=pecl/caching/memcache.git;a=blob_plain;f=memcache.php;hb=HEAD" libraries[memcache][download][filename] = "memcache.php.inc" libraries[memcache][directory_name] = "memcache" Libraries
; Core patch projects[drupal][patch][] = "https://drupal.org/files/issues/install-redirect-on-empty-database-728702-36.patch" ; Projects patch projects[i18n][patch][] = "https://www.drupal.org/files/issues/i18n-php_notice_i18n_taxonomy-206327-10-D7.patch" Patches
Jenkins An extensible open source continuous integration server.
Drupal in CI&T
About the company We are global with people in Brazil, USA, Europe, Australia, Japan and China Our excellence has been recognized by the market with awards since our foundation in 1995 We are truly multi-cultural, an army of over 2000 talented employees and their great stories
CI&T Pacific and Drupal ● The biggest Drupal shop in Asia Pacific, focused on the Enterprise ● Experience delivering Drupal Enterprise sites to Pharma and Retail companies ● Drupal Association Premium Supporting Partner, along with other Community Activities Support/Engagement ● Acquia Partner - 25+ CI&T Acquia Drupal Certified Developers, 9+ in CI&T Pacific CI&T page at Drupal.org: https://www.drupal.org/node/1530378 Locations: ● Development Center/Office in Ningbo ● Also strategic Offices in Tokyo and Sydney
● Drupal Developers ● Scrum Masters ● Web Testers ● Web Developers serina@ciandt.com
Thanks!
Build drupal project based on drush make

Build drupal project based on drush make

  • 1.
    Build Drupal Project based onDrush Make Everright Chen
  • 2.
    About Me ● DeveloperMaster in CI&T ● Drupal (8+ years) ● Drupal, Magento, Wordpress, osCommerce ● PHP, Python, Java, Bash, Ruby, Perl, SQL, Javascript, CSS, ... ● Acquia Certified Developer, MCSE, MCDBA, RCE ● Github: https://github.com/everright
  • 3.
    Agenda ● Drush ● DrushMake ● Build ● Drupal in CI&T
  • 5.
    Drush (Drupal +Shell) Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. Drush can be extended by 3rd party command files. ● Drush documents ● Drush commands
  • 6.
    Drush Versions Drush VersionBranch PHP Compatible Drupal Versions Drush 8 master 5.4.5+ D6, D7, D8 Drush 7 7.x 5.3.0+ D6, D7 Drush 6 6.x 5.3.0+ D6, D7 Drush 5 5.x 5.2.0+ D6, D7 Drush 4 4.x 5.2.0+ D5, D6, D7 Drush 3 3.x 5.2.0+ D5, D6
  • 8.
  • 11.
  • 12.
  • 13.
    core = 7.x ;Latest drupal version projects[] = drupal ; Special version projects[drupal][type] = core projects[drupal][version] = 7.36 ; Use Pressflow instead of Drupal core projects[pressflow][type] = "core" projects[pressflow][download][type] = "file" projects[pressflow][download][url] = "http://launchpad.net/pressflow/6.x/6.15.73/+download/pressflow-6.15.73.tar.gz" ; Git clone of Drupal 7.x. Requires the `core` property to be set to 7.x. projects[drupal][type] = "core" projects[drupal][download][type] = git projects[drupal][download][url] = http://git.drupal.org/project/drupal.git Core
  • 14.
    ; Drush makeallows a default sub directory for all contributed projects. defaults[projects][subdir] = contrib Defaults
  • 15.
    ; Latest viewsmodule projects[] = views ; If you want to retrieve a specific version of a project projects[views] = 3.10 ; Check out the project from Git projects[views][type] = module projects[views][download][type] = git projects[views][download][url] = http://git.drupal.org/project/views.git ; From branch projects[views][download][branch] = "7.x-1.x" ; From tag projects[views][download][tag] = "7.x-1.0" ; From revision projects[views][download][revision] = ”2fe932c” ; If you want to install a module into a subdirectory projects[views][subdir] = "contrib" Projects
  • 16.
    ; Themes projects[zen][type] ="theme" projects[zen][version] = "5.5" projects[zen][subdir] = "contrib" Themes
  • 17.
    ; CKEditor libraries[ckeditor][download][type]= "get" libraries[ckeditor][download][url]= "https://github.com/ckeditor/ckeditor-releases/archive/4.3.1/full.zip" libraries[ckeditor][directory_name] = "ckeditor" ;libraries[ckeditor][destination] = "module/contrib/ckeditor" (Default: libraries) ;libraries[ckeditor][overwrite] = TRUE ; Colorbox libraries[colorbox][download][type]= "git" libraries[colorbox][download][url] = "git@github.com:jackmoore/colorbox.git" libraries[colorbox][download][tag] = "1.5.4" libraries[colorbox][directory_name] = "colorbox" ; Memcache status and rename libraries[memcache][download][type]= "get" libraries[memcache][download][url] = "http://git.php.net/?p=pecl/caching/memcache.git;a=blob_plain;f=memcache.php;hb=HEAD" libraries[memcache][download][filename] = "memcache.php.inc" libraries[memcache][directory_name] = "memcache" Libraries
  • 18.
    ; Core patch projects[drupal][patch][]= "https://drupal.org/files/issues/install-redirect-on-empty-database-728702-36.patch" ; Projects patch projects[i18n][patch][] = "https://www.drupal.org/files/issues/i18n-php_notice_i18n_taxonomy-206327-10-D7.patch" Patches
  • 20.
    Jenkins An extensible opensource continuous integration server.
  • 22.
  • 23.
    About the company Weare global with people in Brazil, USA, Europe, Australia, Japan and China Our excellence has been recognized by the market with awards since our foundation in 1995 We are truly multi-cultural, an army of over 2000 talented employees and their great stories
  • 24.
    CI&T Pacific andDrupal ● The biggest Drupal shop in Asia Pacific, focused on the Enterprise ● Experience delivering Drupal Enterprise sites to Pharma and Retail companies ● Drupal Association Premium Supporting Partner, along with other Community Activities Support/Engagement ● Acquia Partner - 25+ CI&T Acquia Drupal Certified Developers, 9+ in CI&T Pacific CI&T page at Drupal.org: https://www.drupal.org/node/1530378 Locations: ● Development Center/Office in Ningbo ● Also strategic Offices in Tokyo and Sydney
  • 26.
    ● Drupal Developers ●Scrum Masters ● Web Testers ● Web Developers serina@ciandt.com
  • 27.