Tools: CI: install MAVProxy from source rather than using pip

Trying to get correct version of pymavlink (i.e. the one with messages
references in our mavlink repository)

As-is, if there is a pymavlink release after the one references in the
ardupilot repo, we don't pick up any new messages in the Python
bindings.
This commit is contained in:
Peter Barker 2019-11-06 16:16:46 +11:00 committed by Randy Mackay
parent ee1f919244
commit 8f99262ffe
2 changed files with 13 additions and 1 deletions

View File

@ -35,12 +35,25 @@ echo "Targets: $CI_BUILD_TARGET"
echo "Compiler: $c_compiler"
pymavlink_installed=0
mavproxy_installed=0
function run_autotest() {
NAME="$1"
BVEHICLE="$2"
RVEHICLE="$3"
if [ $mavproxy_installed -eq 0 ]; then
echo "Installing MAVProxy"
pushd /tmp
git clone --recursive https://github.com/ardupilot/MAVProxy
pushd MAVProxy
python setup.py build install --user --force
popd
popd
mavproxy_installed=1
# now uninstall the version of pymavlink pulled in by MAVProxy deps:
pip uninstall -y pymavlink
fi
if [ $pymavlink_installed -eq 0 ]; then
echo "Installing pymavlink"
git submodule update --init --recursive

View File

@ -87,7 +87,6 @@ fi
. ~/.profile
pip install --user -U argparse empy pyserial pexpect future lxml
pip install --user -U mavproxy
pip install --user -U intelhex
pip install --user -U numpy
pip install --user -U edn_format