Sismo 是使用 PHP 编写的持续测试服务器。
Sismo is language and tool agnostic。Sismo 只需要一个命令就可以知道怎样运行测试,当测试不通过的时候会返回一个非零的退出代码。
配置
~/.sismo/config.php
:
<?php$projects = array();// create a Growl notifier (for MacOS X)$notifier = new SismoNotifierGrowlNotifier('pa$$word');// create a DBus notifier (for Linux)//$notifier = new SismoNotifierDBusNotifier();// add a local repository hosted on Github$projects[] = new SismoGithubProject('Twig (Local)', '/Users/fabien/Twig', $notifier);// add a remote Github repository$projects[] = new SismoGithubProject('Twig', 'fabpot/Twig', $notifier);// add a project with custom settings$sf2 = new SismoProject('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;