add more CI tests for non-WIP merge requests (1) no_mpi, (2) debug (3) minimal (4) opposite
As suggested by Bruno I managed to setup different build, test & check jobs depending on whether it's a WIP:
or non-WIP:
merge request.
Observe that current build job skips "no_mpi", "debug", "minimal" and "opposite" builds because this MR is WIP:
now.
These are the four new pipeline jobs which I added. At first "no_mpi" was added in !285 (merged), but I moved it here, because this is the place where I originally had fixed other build options. And adding a test for these seemed very reasonable.
So here are the new pipeline jobs that will run on only non-WIP:
merge requests:
- "no_mpi" - has option
-DENABLE_MPI=OFF
- "debug" - has option
-DDEBUG=ON
- "minimal" - is like Bruno's idea for YADE_MINIMAL, it uses options:
-DENABLE_VTK=OFF -DENABLE_MPI=OFF -DENABLE_GUI=OFF -DENABLE_GTS=OFF -DENABLE_TWOPHASEFLOW=OFF -DENABLE_CGAL=OFF -DENABLE_FEMLIKE=OFF -DENABLE_LBMFLOW=OFF -DENABLE_POTENTIAL_BLOCKS=OFF -DENABLE_POTENTIAL_PARTICLES=OFF -DENABLE_GL2PS=OFF -DENABLE_LOGGER=OFF -DENABLE_OPENMP=OFF
- and "opposite" - means that all non-minimal options (options that do not reduce significantly amount of compiled code) are set to the setting opposite to the default one:
-DENABLE_LOGGER=OFF -DENABLE_MASK_ARBITRARY=ON -DENABLE_OPENMP=OFF -DLIQMIGRATION=ON -DPROFILING=ON -DSPH=ON -DDEFORM=ON
To get this all to work I had to fix a little code, mostly related to missing #ifdef
about DEMPFV, CGAL, TWOPHASEFLOW and OpenMP.
Now I remove WIP:
from this MR, and let's observe the full build! :) To trigger the non-WIP build I have to click the green button "Run Pipeline" in the "Pipelines" tab of this MR. Because a mere change of MR title does not trigger a rebuild: