mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tools: add CI test to build with default build_options.py output
hopefully make defaults builds on the build server work all the time
This commit is contained in:
parent
fed0c28d0a
commit
8d833e8f23
@ -32,6 +32,15 @@ echo "Compiler: $c_compiler"
|
|||||||
pymavlink_installed=0
|
pymavlink_installed=0
|
||||||
mavproxy_installed=0
|
mavproxy_installed=0
|
||||||
|
|
||||||
|
function install_pymavlink() {
|
||||||
|
if [ $pymavlink_installed -eq 0 ]; then
|
||||||
|
echo "Installing pymavlink"
|
||||||
|
git submodule update --init --recursive
|
||||||
|
(cd modules/mavlink/pymavlink && python setup.py build install --user)
|
||||||
|
pymavlink_installed=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function run_autotest() {
|
function run_autotest() {
|
||||||
NAME="$1"
|
NAME="$1"
|
||||||
BVEHICLE="$2"
|
BVEHICLE="$2"
|
||||||
@ -52,12 +61,7 @@ function run_autotest() {
|
|||||||
# now uninstall the version of pymavlink pulled in by MAVProxy deps:
|
# now uninstall the version of pymavlink pulled in by MAVProxy deps:
|
||||||
python -m pip uninstall -y pymavlink
|
python -m pip uninstall -y pymavlink
|
||||||
fi
|
fi
|
||||||
if [ $pymavlink_installed -eq 0 ]; then
|
install_pymavlink
|
||||||
echo "Installing pymavlink"
|
|
||||||
git submodule update --init --recursive
|
|
||||||
(cd modules/mavlink/pymavlink && python setup.py build install --user)
|
|
||||||
pymavlink_installed=1
|
|
||||||
fi
|
|
||||||
unset BUILDROOT
|
unset BUILDROOT
|
||||||
echo "Running SITL $NAME test"
|
echo "Running SITL $NAME test"
|
||||||
|
|
||||||
@ -334,6 +338,19 @@ for t in $CI_BUILD_TARGET; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$t" == "build-options-defaults-test" ]; then
|
||||||
|
install_pymavlink
|
||||||
|
echo "Checking default options in build_options.py work"
|
||||||
|
time ./Tools/autotest/test_build_options.py \
|
||||||
|
--no-disable-all \
|
||||||
|
--no-disable-none \
|
||||||
|
--no-disable-in-turn \
|
||||||
|
--board=CubeOrange \
|
||||||
|
--build-targets=copter \
|
||||||
|
--build-targets=plane
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z ${CI_CRON_JOB+1} ]]; then
|
if [[ -z ${CI_CRON_JOB+1} ]]; then
|
||||||
echo "Starting waf build for board ${t}..."
|
echo "Starting waf build for board ${t}..."
|
||||||
$waf configure --board "$t" \
|
$waf configure --board "$t" \
|
||||||
|
Loading…
Reference in New Issue
Block a user