Commit 46e93b9a authored by Lin Jen-Shin's avatar Lin Jen-Shin

Print which ref we're passing to undercoverage

This also tries to maintain running script/undercoverage without any
arguments.
parent be5aefa2
......@@ -598,8 +598,10 @@ rspec:undercoverage:
else
echo "Using \$CI_COMMIT_SHA ($CI_COMMIT_SHA) for this non-merge result pipeline.";
fi;
- UNDERCOVERAGE_COMPARE="${CI_MERGE_REQUEST_DIFF_BASE_SHA:-$(git merge-base origin/master HEAD)}"
- echo "Undercoverage comparing with ${UNDERCOVERAGE_COMPARE}"
- if [ -f scripts/undercoverage ]; then
run_timed_command "scripts/undercoverage";
run_timed_command "scripts/undercoverage ${UNDERCOVERAGE_COMPARE}";
fi;
rspec:feature-flags:
......
#!/usr/bin/env bash
bundle exec undercover -c "${CI_MERGE_REQUEST_DIFF_BASE_SHA:-$(git merge-base origin/master HEAD)}"
bundle exec undercover -c "${1:-$(git merge-base origin/master HEAD)}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment