Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 570 Bytes
<?php
namespace Bob;
task("default", array("test"), function() {
});
desc("Runs all tests.");
task("test", array("phpunit.xml", "composer.json"), function() {
sh("phpunit");
});
fileTask("phpunit.xml", array("phpunit.dist.xml"), function($task) {
copy($task->prerequisites[0], $task->name);
});
fileTask("composer.json", array("composer.lock"), function($task) {
if (!file_exists("composer.phar")) {
file_put_contents("composer.phar", file_get_contents("http://getcomposer.org/composer.phar"));
}
php("composer.phar install");
});