😀
MobileRT
  • LICENSE
  • MobileRT: Mobile Ray Tracing engine
    • Blender tips
    • MobileRT: Mobile Ray Tracing engine
    • This owner will be the default owner for everything in the repository
    • Contributor Covenant Code of Conduct
    • Features
    • Security Policy
    • Tools commands
  • app
    • MobileRT Web server
    • Unit_Testing
      • Engine tests
Powered by GitBook
On this page
  • Check code coverage
  • Check code duplication
  • Check dependency updates
  • Cancel Workflow runs
  • Delete Workflow runs
  • Delete local branches which are not in remote
  • Remove all docker containers and volumes
  • Delete cache from conan package manager

Was this helpful?

  1. MobileRT: Mobile Ray Tracing engine

Tools commands

PreviousSecurity PolicyNextapp

Last updated 2 months ago

Was this helpful?

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);
./test-reporter-latest-linux-amd64 format-coverage -t lcov code_coverage_filtered.info;
./test-reporter-latest-linux-amd64 upload-coverage;

Check code duplication

Here are the commands to generate the :

jscpd -c .jscpd.json .;

Check dependency updates

Here are the commands to generate the dependency updates report in app/report.html:

sh gradlew dependencyUpdates -Drevision=release -DoutputFormatter=html -DoutputDir=.;

And the commands to generate the dependency report in app/build/reports/project/dependencies/root.app.html:

sh gradlew htmlDependencyReport;

Cancel Workflow runs

Here are the commands to cancel the workflow runs from all branches except the master.

user=TiagoMSSantos repo=MobileRT; gh api repos/${user}/${repo}/actions/runs --paginate -q '.workflow_runs[] | select(.head_branch != "master") | "\(.id)"' | xargs -n1 -I % gh api repos/${user}/${repo}/actions/runs/%/cancel -X POST;

Delete Workflow runs

Here are the commands to delete the workflow runs from all branches except the master.

user=TiagoMSSantos repo=MobileRT; gh api repos/${user}/${repo}/actions/runs --paginate -q '.workflow_runs[] | select(.head_branch != "master") | "\(.id)"' | xargs -n1 -I % gh api repos/${user}/${repo}/actions/runs/% -X DELETE;

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.

git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D;

Remove all docker containers and volumes

Here are the commands to remove all docker containers and mounted volumes.

docker system df;
docker system prune --volumes --force;
docker builder prune --all --force;
docker buildx prune --all --force --verbose;
docker network prune --force;
docker volume prune --force;
docker system df;

Delete cache from conan package manager

Here are the commands to delete all the cache from the conan package manager.

conan remove "*" --builds --src --system-reqs --force;
code duplication report