Sismo 是使用 PHP 编写的持续测试服务器。
Sismo is language and tool agnostic。Sismo 只需要一个命令就可以知道怎样运行测试,当测试不通过的时候会返回一个非零的退出代码。
配置
~/.sismo/config.php
:
<?php $projects = array(); // create a Growl notifier (for MacOS X) $notifier = new Sismo\Notifier\GrowlNotifier('pa$$word'); // create a DBus notifier (for Linux) //$notifier = new Sismo\Notifier\DBusNotifier(); // add a local repository hosted on Github $projects[] = new Sismo\GithubProject('Twig (Local)', '/Users/fabien/Twig', $notifier); // add a remote Github repository $projects[] = new Sismo\GithubProject('Twig', 'fabpot/Twig', $notifier); // add a project with custom settings $sf2 = new Sismo\Project('Symfony'); $sf2->setRepository('https://github.com/symfony/symfony.git'); $sf2->setBranch('master'); $sf2->setCommand('./vendors.sh; phpunit'); $sf2->setSlug('symfony-local'); $sf2->setUrlPattern('https://github.com/symfony/symfony/commit/%commit%'); $sf2->addNotifier($notifier); $projects[] = $sf2; return $projects;