Skip to content

Instantly share code, notes, and snippets.

@mikebell
Created May 6, 2012 18:48
Show Gist options
  • Save mikebell/2623768 to your computer and use it in GitHub Desktop.
Save mikebell/2623768 to your computer and use it in GitHub Desktop.
Drush make in Phing
<project name="mumblrmake" default="dl modules" description="Jenkins Mumblr Make">
<target name="dl modules">
<exec command="drush make mumblr.make . --yes" error='error' checkreturn="true">
</exec>
<loadfile property="en.error" file="error" />
<if>
<contains string="${en.error}" substring="warning" />
<then>
<property name="en.fail" value="Could not download all modules" />
</then>
</if>
<fail if="en.fail" message="${en.fail}" />
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment