PHPackages                             palantirnet/phing-drush-task - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. palantirnet/phing-drush-task

ActiveLibrary[CLI &amp; Console](/categories/cli)

palantirnet/phing-drush-task
============================

Drush task for Phing

2.0.0(3y ago)196.9k↓41.2%1[1 PRs](https://github.com/palantirnet/phing-drush-task/pulls)1GPL-2.0+PHP

Since Feb 7Pushed 1y agoCompare

[ Source](https://github.com/palantirnet/phing-drush-task)[ Packagist](https://packagist.org/packages/palantirnet/phing-drush-task)[ Docs](https://github.com/palantirnet/phing-drush-task)[ RSS](/packages/palantirnet-phing-drush-task/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (13)Used By (1)

Phing Drush Task
----------------

[](#phing-drush-task)

A Drush task for [Phing](http://www.phing.info/). This task enable usage of Drush commands in Phing build scripts.

Phing provides tools for usual tasks for PHP projects (phplint, jslint, VCS checkouts, files copy or merge, packaging, upload, etc.). Integration of Drush in Phing is particularly useful when building and testing Drupal projects in a continuous integration server such as [Jenkins](http://jenkins-ci.org/).

Installation and Usage
----------------------

[](#installation-and-usage)

To use the drush task in your build file, it must be made available to Phing so that the buildfile parser is aware a correlating XML element and it's parameters. This is done by adding a `` task to your build file:

```

```

See the [Phing documentation](http://www.phing.info/docs/guide/stable/chapters/appendixes/AppendixB-CoreTasks.html#TaskdefTask) for more information on the `` task.

Base Drush options are mapped to attribute of the Drush task. Parameters are wrapped in elements. Value of a parameter is defined by the text child of the element. Options are mapped to elements with a name attribute. Value of an option can either be in the value attribute of the element or as text child (like params).

The drush command for installing Drupal:

`drush site-install --yes --locale=uk --site-name =${sitename} expert`

... would be written in a Phing build file as:

```
