Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (22 sloc) 367 Bytes
#!/bin/sh +x
originUri="$(git remote -v | grep origin | head -1 | awk '{print $2}')"
echo "cloning ${originUri} ..."
if [ -e temp ]
then
rm -rf temp
fi
mkdir temp
pushd temp >& /dev/null
git clone $originUri . >& /dev/null
TESTS=../tests/*
for f in $TESTS
do
"$f"
if [ $? -ne 0 ]
then
printf '\nError occurred!'
exit 1
fi
done
popd >& /dev/null
rm -rf temp