chore: Refactor scripts (code-coverage + test report)
Generalize the script by parsing bash arguments, allows:
- reuse of the script
- allow use different build Option for local and CI environment, such as
--local_cpu_resources=2
in the CI environment
Edited by Xiao Pan