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
#!/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 [email protected]:darcs &&\
 cabal haddock --internal --hoogle &&\
 rsync -av dist/doc/html/darcs/* [email protected]:darcs/api-doc\
) || (echo "THERE WAS A PROBLEM!" ; exit 1)
echo ======================================================================
echo done pushing to darcs.net!
echo ======================================================================

Attachment: pgpvlLpHi2gJe.pgp
Description: PGP signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to