root/trunk/plagger/tools/smoke-commit-hook.pl

Revision 1316 (checked in by miyagawa, 5 years ago)

add smoker for svn post-commit hook

  • Property svn:executable set to *
Line 
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use File::Path;
5 use File::Temp qw(tempdir);
6
7 our $repo = "http://svn.bulknews.net/repos/plagger";
8
9 my $revision = shift || 'HEAD';
10
11 my $workdir  = tempdir(CLEANUP => 1);
12 my $checkout = "plagger-r$revision";
13
14 chdir $workdir;
15
16 if (-e $checkout) {
17     die "$workdir/$checkout exists. Remove it first";
18 }
19
20 system("svn co -r $revision $repo/trunk/plagger $checkout");
21 chdir $checkout;
22
23 system("perl Makefile.PL --skip");
24
25 warn "Running chimps-client";
26 system("tools/chimps-client.pl");
27 warn "Done.";
28
29 chdir "..";
30 rmtree("$workdir/$checkout");
Note: See TracBrowser for help on using the browser.