Skip to content

Instantly share code, notes, and snippets.

@nelsonsar
Created November 5, 2013 20:52
Show Gist options
  • Save nelsonsar/7326007 to your computer and use it in GitHub Desktop.
Save nelsonsar/7326007 to your computer and use it in GitHub Desktop.
Sismo simple config
<?php
$projects = array();
$subjectFormat = 'Commit %sha% made %name% became %status%';
$messageFormat = '%author% made commit %sha% and the build status is: %status%';
$notifier = new Sismo\Notifier\MailNotifier('nelson@localhost.com', $subjectFormat, $messageFormat)
$project = new Sismo\Project('MyProject (Local)', '/Users/nelson/workspace/myproject', $notifier);
$project->setSlug('my');
//Script to run commands like: composer update|install, phpunit and behat
$project->setCommand('sh /Users/nelson/.sismo/runtests.sh');
//Little trick to get current branch :P
$project->setBranch(trim(exec('cd ' . $project->getRepository() . ' && git rev-parse --abbrev-ref HEAD'), '\n'));
$projects[] = $project;
return $projects;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment