mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
CI: add examples test
This commit is contained in:
parent
c8a7ab1a75
commit
7a5a7b1eb5
7
.github/workflows/test_unit_tests.yml
vendored
7
.github/workflows/test_unit_tests.yml
vendored
@ -8,7 +8,9 @@ on: [push, pull_request, workflow_dispatch]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
container: ardupilot/ardupilot-dev-${{ matrix.toolchain }}:latest
|
||||
container:
|
||||
image: ardupilot/ardupilot-dev-${{ matrix.toolchain }}:latest
|
||||
options: --user 1001
|
||||
strategy:
|
||||
fail-fast: false # don't cancel if a job from the matrix fails
|
||||
matrix:
|
||||
@ -18,7 +20,8 @@ jobs:
|
||||
]
|
||||
config: [
|
||||
unit-tests,
|
||||
python-cleanliness
|
||||
python-cleanliness,
|
||||
examples,
|
||||
]
|
||||
steps:
|
||||
# git checkout the PR
|
||||
|
@ -71,6 +71,9 @@ function run_autotest() {
|
||||
if [ "x$CI_BUILD_DEBUG" != "x" ]; then
|
||||
w="$w --debug"
|
||||
fi
|
||||
if [ $NAME == "Examples" ]; then
|
||||
w="$w --speedup=5 --timeout=14400 --debug --no-clean"
|
||||
fi
|
||||
Tools/autotest/autotest.py --show-test-timings --waf-configure-args="$w" "$BVEHICLE" "$RVEHICLE"
|
||||
ccache -s && ccache -z
|
||||
}
|
||||
@ -159,6 +162,13 @@ for t in $CI_BUILD_TARGET; do
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$t" == "examples" ]; then
|
||||
./waf configure --board=linux --debug
|
||||
./waf examples
|
||||
run_autotest "Examples" "--no-clean" "run.examples"
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$t" == "revo-bootloader" ]; then
|
||||
echo "Building revo bootloader"
|
||||
$waf configure --board revo-mini --bootloader
|
||||
|
Loading…
Reference in New Issue
Block a user