autotest: auto-update uavcan repo

This commit is contained in:
Andrew Tridgell 2014-11-28 07:29:29 +11:00
parent 0811f9c175
commit 1c94559fa2

View File

@ -21,7 +21,18 @@ newtagsnuttx=$(cd PX4NuttX && git fetch --tags | wc -l)
oldhashnuttx=$(cd PX4NuttX && git rev-parse origin/master)
newhashnuttx=$(cd PX4NuttX && git rev-parse HEAD)
if [ "$oldhash" = "$newhash" -a "$newtags" = "0" -a "$oldhashpx4" = "$newhashpx4" -a "$newtagspx4" = "0" -a "$oldhashnuttx" = "$newhashnuttx" -a "$newtagsnuttx" = "0" ]; then
newtagsuavcan=$(cd uavcan && git fetch --tags | wc -l)
oldhashuavcan=$(cd uavcan && git rev-parse origin/master)
newhashuavcan=$(cd uavcan && git rev-parse HEAD)
if [ "$oldhash" = "$newhash" -a
"$newtags" = "0" -a
"$oldhashpx4" = "$newhashpx4" -a
"$newtagspx4" = "0" -a
"$oldhashnuttx" = "$newhashnuttx" -a
"$newtagsnuttx" = "0" -a
"$oldhashuavcan" = "$newhashuavcan" -a
"$newtagsuavcan" = "0" ]; then
echo "no change $oldhash $newhash `date`" >> build.log
exit 0
fi
@ -114,6 +125,17 @@ git fetch origin --tags
git show
popd
pushd uavcan
git fetch origin
git reset --hard origin/master
for v in ArduPlane ArduCopter APMrover2; do
git tag -d $v-beta || true
git tag -d $v-stable || true
done
git fetch origin --tags
git show
popd
echo "Updating pymavlink"
pushd mavlink/pymavlink
git fetch origin