Top Banner
Build Drupal Project based on Drush Make Everright Chen
28

Build drupal project based on drush make

Jul 28, 2015

Download

Technology

Everright Chen
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Build drupal project based on drush make

Build Drupal Project based on Drush MakeEverright Chen

Page 2: Build drupal project based on drush make

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

Page 3: Build drupal project based on drush make

Agenda

● Drush● Drush Make● Build● Drupal in CI&T

Page 4: Build drupal project based on drush make
Page 5: Build drupal project based on drush make

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

Page 6: Build drupal project based on drush make

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

Page 7: Build drupal project based on drush make
Page 8: Build drupal project based on drush make

Drupal 7.30

Drupal 7.37

Page 9: Build drupal project based on drush make
Page 10: Build drupal project based on drush make
Page 11: Build drupal project based on drush make

make

Page 12: Build drupal project based on drush make

YAML

Page 13: Build drupal project based on drush make

core = 7.x

; Latest drupal versionprojects[] = drupal

; Special versionprojects[drupal][type] = coreprojects[drupal][version] = 7.36

; Use Pressflow instead of Drupal coreprojects[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] = gitprojects[drupal][download][url] = http://git.drupal.org/project/drupal.git

Core

Page 14: Build drupal project based on drush make

; Drush make allows a default sub directory for all contributed projects.defaults[projects][subdir] = contrib

Defaults

Page 15: Build drupal project based on drush make

; Latest views moduleprojects[] = views

; If you want to retrieve a specific version of a projectprojects[views] = 3.10

; Check out the project from Gitprojects[views][type] = moduleprojects[views][download][type] = gitprojects[views][download][url] = http://git.drupal.org/project/views.git; From branchprojects[views][download][branch] = "7.x-1.x"; From tagprojects[views][download][tag] = "7.x-1.0"; From revisionprojects[views][download][revision] = ”2fe932c”

; If you want to install a module into a subdirectoryprojects[views][subdir] = "contrib"

Projects

Page 16: Build drupal project based on drush make

; Themesprojects[zen][type] = "theme"projects[zen][version] = "5.5"projects[zen][subdir] = "contrib"

Themes

Page 17: Build drupal project based on drush make

; CKEditorlibraries[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

; Colorboxlibraries[colorbox][download][type]= "git"libraries[colorbox][download][url] = "[email protected]:jackmoore/colorbox.git"libraries[colorbox][download][tag] = "1.5.4"libraries[colorbox][directory_name] = "colorbox"

; Memcache status and renamelibraries[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

Page 18: Build drupal project based on drush make

; Core patchprojects[drupal][patch][] = "https://drupal.org/files/issues/install-redirect-on-empty-database-728702-36.patch"

; Projects patchprojects[i18n][patch][] = "https://www.drupal.org/files/issues/i18n-php_notice_i18n_taxonomy-206327-10-D7.patch"

Patches

Page 19: Build drupal project based on drush make
Page 20: Build drupal project based on drush make

Jenkins

An extensible open source continuous integration server.

Page 21: Build drupal project based on drush make
Page 22: Build drupal project based on drush make

Drupal in CI&T

Page 23: Build drupal project based on drush make

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

Page 24: Build drupal project based on drush make

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

Page 25: Build drupal project based on drush make
Page 26: Build drupal project based on drush make

● Drupal Developers● Scrum Masters● Web Testers● Web Developers

[email protected]

Page 27: Build drupal project based on drush make

Thanks!

Page 28: Build drupal project based on drush make