Created
November 5, 2013 20:52
-
-
Save nelsonsar/7326007 to your computer and use it in GitHub Desktop.
Sismo simple config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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