Last active
February 3, 2016 05:48
-
-
Save andrewchambers/51a0a51011fb0839d34a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true | |
do | |
cat ~/fifo | ( | |
while read rev ref | |
do | |
tarfile=$rev.tar.gz | |
(cd ~/gittest/server/ && git archive --format=tar $rev) | gzip > $tarfile | |
for cfg in `ls configs/` | |
do | |
buildlog=buildlogs/$cfg-$rev.log | |
timeout 10m ./configs/$cfg $tarfile &> $buildlog | |
exitcode=$? | |
if [ $exitcode -eq 0 ] ; then | |
echo "PASS" >> $buildlog | |
else | |
echo "FAIL" >> $buildlog | |
fi | |
if [ -f ./hooks/buildcomplete ] | |
then | |
./hooks/cfgcomplete $exitcode $buildlog | |
fi | |
done | |
if [ -f ./hooks/commitcomplete ] | |
then | |
./hooks/commitcomplete $rev $ref | |
fi | |
rm $tarfile | |
done | |
) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
scp $1 linux:~/build.tar.gz | |
ssh linux "rm -rf ~/mbuilder && mkdir -p ~/mbuilder && cd ~/mbuilder && tar xzf ~/build.tar.gz && make check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read oldrev newrev refname | |
do | |
echo $oldrev $newrev $refname | |
for rev in `git rev-list $oldrev..$newrev` | |
do | |
echo $rev $refname > ~/fifo | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment