mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
Appveyor: Enable build matrix for parallel CI targets
This commit is contained in:
committed by
Daniel Agar
parent
a3ebe5676f
commit
88f2a6854c
+9
-8
@@ -20,6 +20,11 @@ platform:
|
|||||||
init:
|
init:
|
||||||
- ver
|
- ver
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- PX4_CONFIG: tests # this builds posix in px4_sitl_test folder and runs tests
|
||||||
|
- PX4_CONFIG: px4_fmu-v5_default
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# if the toolchain wasn't restored from build cache download and install it
|
# if the toolchain wasn't restored from build cache download and install it
|
||||||
- ps: >-
|
- ps: >-
|
||||||
@@ -38,14 +43,10 @@ build_script:
|
|||||||
- call C:\PX4\toolchain\scripts\setup-environment.bat x
|
- call C:\PX4\toolchain\scripts\setup-environment.bat x
|
||||||
# safe the repopath for switching to it in cygwin bash
|
# safe the repopath for switching to it in cygwin bash
|
||||||
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
||||||
# fetch all submodules in parallel
|
# fetch all submodules in parallel with limited depth
|
||||||
- call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10"
|
#- call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10 --depth 200"
|
||||||
# make SITL
|
# build the make target
|
||||||
- call bash --login -c "cd $repopath && make px4_sitl_test"
|
- call bash --login -c "cd $repopath && make $PX4_CONFIG"
|
||||||
# make pixracer to check NuttX build
|
|
||||||
- call bash --login -c "cd $repopath && make px4_fmu-v4_default"
|
|
||||||
# run tests
|
|
||||||
- call bash --login -c "cd $repopath && make tests"
|
|
||||||
|
|
||||||
# Note: using bash --login is important
|
# Note: using bash --login is important
|
||||||
# because otherwise certain things (like python; import numpy) do not work
|
# because otherwise certain things (like python; import numpy) do not work
|
||||||
|
|||||||
Reference in New Issue
Block a user