mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
autotest: auto-update uavcan repo
This commit is contained in:
parent
0811f9c175
commit
1c94559fa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user