[darcs-users] commit bits now in place

Eric Kow kowey at darcs.net
Fri Aug 7 12:12:23 UTC 2009


On Fri, Aug 07, 2009 at 12:58:29 +1000, Trent W. Buck wrote:
> When are functional and unit tests (respectively) run?  Are they set up
> as test hooks on the primary repo, so that attempting to push a buggy
> patch will fail?

Unfortunately no.  They are run by the buildbot at the moment.

> Should I run both kinds of tests on my own machine
> before pushing?

Perhaps we should set up a system on darcs.net where we push to a
staging repo which then automatically pushes to darcs, see attachment
(which was based on my local setup, and can be simplified).

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
#!/bin/bash
export http_proxy=proxy.brighton.ac.uk:80
cd ${HOME}/darcs.net
echo ======================================================================
echo building
echo ======================================================================
cabal configure -ftest
cabal build
echo ======================================================================
echo unit tests
echo ======================================================================
dist/build/unit/unit
echo ======================================================================
echo darcs check
echo ======================================================================
(\
darcs check --test &&\
 darcs push -a darcs-unstable at darcs.net:darcs &&\
 cabal haddock --internal --hoogle &&\
 rsync -av dist/doc/html/darcs/* darcs-unstable at darcs.net:darcs/api-doc\
) || (echo "THERE WAS A PROBLEM!" ; exit 1)
echo ======================================================================
echo done pushing to darcs.net!
echo ======================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090807/e9bfa8ed/attachment.pgp>


More information about the darcs-users mailing list