Browse Source

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.
c415-sdk
Peter Barker 5 years ago committed by Randy Mackay
parent
commit
8f99262ffe
  1. 13
      Tools/scripts/build_ci.sh
  2. 1
      Tools/scripts/configure-ci.sh

13
Tools/scripts/build_ci.sh

@ -35,12 +35,25 @@ echo "Targets: $CI_BUILD_TARGET" @@ -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

1
Tools/scripts/configure-ci.sh

@ -87,7 +87,6 @@ fi @@ -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

Loading…
Cancel
Save