in reply to Automating tests before a CVS commit

You can add these items you your project's "commitinfo" file.
--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: Automating tests before a CVS commit

Replies are listed 'Best First'.
Re^2: Automating tests before a CVS commit
by EvdB (Deacon) on Jul 08, 2004 at 11:09 UTC
    I'm having trouble getting this working as I want it to.
    --- commitinfo --- pl$ $CVSROOT/CVSROOT/commit-perl.bash pm$ $CVSROOT/CVSROOT/commit-perl.bash PL$ $CVSROOT/CVSROOT/commit-perl.bash --- commit-perl.bash --- #!/bin/bash perl -c $1 || exit 1 perltidy -b $1 || exit 1 --- sample.pl --- #!/usr/bin/perl my $test = '";
    I am still allowed to commit sample.pl, even though I shouldn't be. Any suggestions.

    Also I would like to run tests locally (ie not on server). Can this be done?.

    --tidiness is the memory loss of environmental mnemonics