Skip to content

Commit

Permalink
- script: |
Browse files Browse the repository at this point in the history
          if command -v gcov >/dev/null 2>&1; then
              echo "gcov is installed."
          else
              echo "gcov is not installed." && apt-get update && apt-get install -y gcovr
          fi
        displayName: Check if gcov is installed
  • Loading branch information
jchen351 committed Jul 17, 2024
1 parent e4a1036 commit 496175a
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,15 @@ stages:
echo "gcov is not installed." && apt-get update && apt-get install -y gcovr
fi
displayName: Check if gcov is installed
# - displayName: Check if $(Build.SourcesDirectory)/build_nnapi/Debug/CMakeFiles/onnxruntime_test_all.dir/mnt/vss/_work/1/s/onnxruntime/test/framework/parallel_executor_test.cc.gcda exists
# script: |
# if [ -f Debug/CMakeFiles/onnxruntime_test_all.dir/mnt/vss/_work/1/s/onnxruntime/test/framework/parallel_executor_test.cc.gcda ]; then
# echo "Debug/CMakeFiles/onnxruntime_test_all.dir/mnt/vss/_work/1/s/onnxruntime/test/framework/parallel_executor_test.cc.gcda exists"
# else
# echo "Debug/CMakeFiles/onnxruntime_test_all.dir/mnt/vss/_work/1/s/onnxruntime/test/framework/parallel_executor_test.cc.gcda does not exist"
# exit 1
# fi
- script: |
if command -v gcovr >/dev/null 2>&1; then
echo "gcov is installed."
else
echo "gcov is not installed." && apt-get update && apt-get install -y gcovr
fi
displayName: Check if gcovr is installed
- script: |
set -e -x && \
python3 -m pip install gcovr && \
Expand Down

0 comments on commit 496175a

Please sign in to comment.