Tools commands
Check code coverage
Here are the commands to generate the code coverage report:
find build_debug/* -name *.gcda | xargs rm;
pushd build_debug;
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=debug ../app;
cmake --build .;
popd;
lcov -c -i -d . --no-external --ignore-errors mismatch -o code_coverage_base.info;
./build_debug/bin/UnitTestsd;
lcov -c -d . --no-external --ignore-errors mismatch -o code_coverage_test.info;
lcov -a code_coverage_base.info -a code_coverage_test.info -o code_coverage.info;
lcov --remove code_coverage.info '*third_party*' '*build*' '*Unit_Testing*' -o code_coverage_filtered.info;
genhtml code_coverage.info -o code_coverage_report --no-branch-coverage -t MobileRT_code_coverage;
bash <(curl -s https://codecov.io/bash);Check code duplication
Here are the commands to generate the code duplication report:
jscpd -c .jscpd.json .;Check dependency updates
Here are the commands to generate the dependency updates report in app/report.html:
And the commands to generate the dependency report in app/build/reports/project/dependencies/root.app.html:
Cancel Workflow runs
Here are the commands to cancel the workflow runs from all branches except the master.
Delete Workflow runs
Here are the commands to delete the workflow runs from all branches except the master.
Delete local branches which are not in remote
Here are the commands to delete the git local branches that are not on the remote server.
Remove all docker containers and volumes
Here are the commands to remove all docker containers and mounted volumes.
Delete cache from conan package manager
Here are the commands to delete all the cache from the conan package manager.
Last updated
Was this helpful?