Skip to content

Commit

Permalink
Fix reporting status on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
guperrot committed Sep 27, 2018
1 parent 90f0df0 commit 407885e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/run-code-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ done
duration=$(( SECONDS - start ))
echo "Android Emulator started after $duration seconds."

# Convert VSTS variables to coveralls for pull request reports to work.
if [[ $BUILD_SOURCEBRANCH =~ ^refs/pull/[0-9]+/merge$ ]]
then
export CI_PULL_REQUEST=`sed -E 's#refs/pull/([0-9]+)/merge#\1#' <<< $BUILD_SOURCEBRANCH`
fi
# Run tests with coverage
if [ -z $1 ]
then
Expand Down

0 comments on commit 407885e

Please sign in to comment.