SismoFinder + Sismo + Agile PHP Projects

Get SismoFinder local:

mkdir sismoFinder
git clone .
git submodule init
git submodule update --recursive

We will modify the sismo configuration to the following always noticing to change the path to sismoFinder source. Here I have placed sismoFinder folder at the same level than any of my project folders. So everything for me is currently under sites-2 folder and that is where I have placed it:

$loader = new Symfony\Component\ClassLoader\UniversalClassLoader();
    'SismoFinder' => '/home/cordoval/sites-2/sismoFinder/src',
$finder = new \SismoFinder\Finder();
return $finder->getProjects();

Then at the project level we have the following configuration:

$notifier = new Sismo\DBusNotifier();
$graciaName = 'gracia';
$gracia = new Sismo\Project($graciaName);
return $gracia;

And we also have our custom script which determines the command that sismo will run:


For our case we have called sismo as well. However when having many tasks or branches we could call it different names and have different hooks that will act upon command too. I have a git post-commit hook that triggers sismo with a name for the branch/action that needs to be build with respective sha1. We don’t want to touch the post-commit hook and have it as generic as possible and only touch the main script that is defined in the local project configuration sismo.config.php and have this and the command script decide what to do.

Leave a Reply

Your email address will not be published. Required fields are marked *