Skip to content

Commit

Permalink
CI: ensure pydronecan is installed from submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Feb 10, 2024
1 parent 0959394 commit 402ef27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tools/scripts/build_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ echo "Compiler: $c_compiler"

pymavlink_installed=0
mavproxy_installed=0
dronecan_installed=0

function install_pymavlink() {
if [ $pymavlink_installed -eq 0 ]; then
Expand All @@ -45,6 +46,15 @@ function install_pymavlink() {
fi
}

function install_dronecan() {
if [ $dronecan_installed -eq 0 ]; then
echo "Installing dronecan"
git submodule update --init --recursive --depth 1
(cd modules/DroneCAN/pydronecan && python3 setup.py build install --user)
dronecan_installed=1
fi
}

function install_mavproxy() {
if [ $mavproxy_installed -eq 0 ]; then
echo "Installing MAVProxy"
Expand All @@ -70,6 +80,7 @@ function run_autotest() {

install_mavproxy
install_pymavlink
install_dronecan
unset BUILDROOT
echo "Running SITL $NAME test"

Expand Down Expand Up @@ -418,6 +429,7 @@ for t in $CI_BUILD_TARGET; do
echo "Checking autotest options"
install_mavproxy
install_pymavlink
install_dronecan
./Tools/autotest/autotest.py --help
./Tools/autotest/autotest.py --list
./Tools/autotest/autotest.py --list-subtests
Expand Down

0 comments on commit 402ef27

Please sign in to comment.