From 88f2a6854c6e46a235c3c5959fc8f6f56408d932 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Sun, 7 Apr 2019 15:28:21 +0200 Subject: [PATCH] Appveyor: Enable build matrix for parallel CI targets --- appveyor.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 6c9966edfe..86e201b6cc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,6 +20,11 @@ platform: init: - ver +environment: + matrix: + - PX4_CONFIG: tests # this builds posix in px4_sitl_test folder and runs tests + - PX4_CONFIG: px4_fmu-v5_default + install: # if the toolchain wasn't restored from build cache download and install it - ps: >- @@ -38,14 +43,10 @@ build_script: - call C:\PX4\toolchain\scripts\setup-environment.bat x # safe the repopath for switching to it in cygwin bash - for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i -# fetch all submodules in parallel -- call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10" -# make SITL -- call bash --login -c "cd $repopath && make px4_sitl_test" -# 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" +# fetch all submodules in parallel with limited depth +#- call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10 --depth 200" +# build the make target +- call bash --login -c "cd $repopath && make $PX4_CONFIG" # Note: using bash --login is important # because otherwise certain things (like python; import numpy) do not work