Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revmischa/test-bot
Continuous integration bot for perl
https://github.com/revmischa/test-bot
Last synced: 3 days ago
JSON representation
Continuous integration bot for perl
- Host: GitHub
- URL: https://github.com/revmischa/test-bot
- Owner: revmischa
- Created: 2011-10-11T06:56:18.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-14T19:17:16.000Z (over 11 years ago)
- Last Synced: 2024-10-18T07:53:33.809Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 180 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a bot that can be configured to watch for new commits to a
repo, run unit tests for each commit, and notify developers of failed
tests. It also can notify you of new commits in an IRC channel.Currently it supports GitHub and Kiln repos and. You must create a
post_receive hook and point it at your bot.At present it only supports notifications via IRC. Plans are to
include email and web page outputs as well.Unit tests are run via TAP::Harness.
To create your own bot, create a script with the following:
```
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/lib";
use Test::Bot::GitHub;my $bot = Test::Bot::GitHub->new_with_options(
source_dir => "$ENV{HOME}/myproject",
tests_dir => "t",
notification_modules => [ 'IRC' ],
port => 4000,
force => 1, # overwrite local modifications?
);
$bot->configure_notifications(
irc_host => 'irc.int80.biz',
irc_channel => '#int80',
);$bot->run;
```If you specify force => 1, a `git clean -df` and `git checkout -f
$commit` will be performed when running tests for a commit. This will
delete untracked (and not ignored) files and changes, so be careful.If you are interested in using this program and would like to help
develop it further, please let me know via GitHub, email or IRC.