28
Build Drupal Project based on Drush Make Everright Chen

Build drupal project based on drush make

Embed Size (px)

Citation preview

Build Drupal Project based on Drush MakeEverright 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 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

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

Defaults

; 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

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

Themes

; 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

; 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

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

[email protected]

Thanks!