[RFC] Install only necessary dependencies for each build type.

Don't install unnecessary dependencies (e.g. jq, but not clang or doxygen for vimpatch report) to clean up the scripts and make builds a tiny bit faster.
Awesome, thanks! Added an `is_ci_build?` function.