Skip to content

Instantly share code, notes, and snippets.

@kowey
Created December 2, 2009 15:00
Show Gist options
  • Save kowey/247253 to your computer and use it in GitHub Desktop.
Save kowey/247253 to your computer and use it in GitHub Desktop.
#!/bin/bash
FAST_MACHINE=stanley
env | grep SSH_AGENT_PID
SSH_AGENT_CHECK_STATUS=$?
if [ $SSH_AGENT_CHECK_STATUS -ne 0 ]; then
eval `ssh-agent`
ssh-add
fi
darcs push --no-set ${FAST_MACHINE}:darcs.net
# note the -A flag for ssh-agent forwarding (your fast machine will be
# sshing into darcs.net)
ssh -A ${FAST_MACHINE} bin/02-darcs-staging.sh
if [ $SSH_AGENT_CHECK_STATUS -ne 0 ]; then
ssh-agent -k
fi
#!/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/* [email protected]:darcs/api-doc\
) || (echo "THERE WAS A PROBLEM!" ; exit 1)
echo ======================================================================
echo done pushing to darcs.net!
echo ======================================================================
check test
apply posthook perl contrib/update_roundup.pl ; echo "ran update_roundup"
apply run-posthook
runghc Setup configure --user -ftype-witnesses && runghc Setup build && runghc Setup test tests network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment