Something like Ant, but with more PHP and less XML.
- PHP >= 5.4
- Write targets, tasks in (almost) plain PHP.
- Use Java-style properties like
{build.directory}. Nested properties are supported. - Targets can have dependencies.
- Download and install with
git clone https://github.com/tmdk/taskrunner.gitandphp composer.phar install. - Run a bundle (build file) with
taskrunner [target]. Taskrunner will look for a filebuild.phpin the current directory. Use the-fflag to specify the path to a bundle. - For pointers on writing bundles, take a look at the examples under
examples.
A task can be any function (any callable really). The only requirement is
that the function returns an array of two elements, the first element being
a boolean denoting whether the task was executed succesfully, and the second
one a string containing any messages about the result of the task.
- Write tasks.