Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There is already
CUSTOM_INIT_SCRIPT
which is hard coded to run via/bin/sh
. I made possible to override with aCUSTOM_INIT_SCRIPT_SHELL
variable if the user want to use powershell, perl, python or whatever instead.I also added support for similar scripts to be run before and/or after each run of unit tests with
ARDUINO_CI_PRE_UNIT_TEST_RUN_SCRIPT
andARDUINO_CI_POST_UNIT_TEST_RUN_SCRIPT
(and similar..._SHELL
overrides). If set, the corresponding script will be run once for each configured platform and compiler combination, e.g. if.arduino-ci.yaml
containsthe scripts will be invoked four times, with the current platform name being tested as the first parameter to the script and the current compiler used as the second parameter.
Then there is
ARDUINO_CI_UNIT_TEST_EXTRA_COMPILER_FLAGS
to be able to inject extra compiler arguments when running tests (I use it to add--coverage -O0 -g -fprofile-abs-path
).