diff --git a/.gitignore b/.gitignore index afd925bb53c361fccde487a11d1392b8688880c8..266131957a4c80c5230a80159d0d0860c35fed25 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,4 @@ Gemfile* *.xml report.html assets +.xmake diff --git a/build_run.sh b/build_run.sh index b90d740d8333a079782505ab7511e8a0d81aece2..e0e9c7b40af0b1ff04ee597d490d1897637d76be 100644 --- a/build_run.sh +++ b/build_run.sh @@ -2,16 +2,16 @@ set -exo pipefail mkdir -p build cd build || exit 1 +# rm -rf CMakeCache.tx which gcovr which lcov which cmake which cppcheck # apt update && apt install -y gcovr lcov cppcheck env | grep PATH -cmake -DENABLE_COVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. -# -GNinja +cmake -DENABLE_COVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. -GNinja cppcheck --enable=all --inconclusive --xml --xml-version=2 --project=compile_commands.json -ibuild -iCMakeFiles -ilibgtest* .. 2> cppcheck.xml -make +ninja if ./my_ac_note --gtest_output=xml:report_gtest.xml; then echo "run gtest success"