Skip to content
Snippets Groups Projects
Commit 1c94559f authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

autotest: auto-update uavcan repo

parent 0811f9c1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment