Skip to content
This repository has been archived by the owner on Jul 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #67 from brunoric/fix-gcov-generation
Browse files Browse the repository at this point in the history
Fix gcov command
  • Loading branch information
brunoric committed Nov 25, 2017
2 parents bef4340 + 6bc4725 commit 6123c58
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bin/phpqa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ function parseArgs()
updateAll;
fi

_COMMAND=$1;
if [ "${_COMMAND}" = "gcov" ]; then
executeGcov;
fi

if [ "${_COMMAND}" != "run" ] && [ "${_COMMAND}" != "generate" ] && [ "${_COMMAND}" != "help" ] && [ "${_COMMAND}" != "gcov" ]; then
displayHelp "Unrecognized command ${_COMMAND}.";
fi
Expand Down Expand Up @@ -214,6 +209,8 @@ function executeCommand()

function executeGcov()
{
_RUN_VERSION=$1;

docker run --rm -i -t herdphp/phpqa:${_RUN_VERSION} make lcov;
printf "${_GREEN}The coverage report were generated and is available at lcov_html/index.html \n"
exit 0;
Expand Down

0 comments on commit 6123c58

Please sign in to comment.