You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2019/05/28 18:05:37 UTC
[atlas] branch master updated: ATLAS-3234: Add option in
Precommit-Atlas to build and run tests on git pull request
This is an automated email from the ASF dual-hosted git repository.
sarath pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 14eb91a ATLAS-3234: Add option in Precommit-Atlas to build and run tests on git pull request
14eb91a is described below
commit 14eb91a7d9638d6659d801e702b3f277cec2427d
Author: Sarath Subramanian <sa...@apache.org>
AuthorDate: Fri May 24 11:34:28 2019 -0700
ATLAS-3234: Add option in Precommit-Atlas to build and run tests on git pull request
---
dev-support/test-patch.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh
index fb06268..2cc6062 100755
--- a/dev-support/test-patch.sh
+++ b/dev-support/test-patch.sh
@@ -126,6 +126,9 @@ parseArgs() {
--review-id=*)
REVIEW_ID=${i#*=}
;;
+ --pullrequest-id=*)
+ PR_ID=${i#*=}
+ ;;
--local-patch=*)
LOCAL_PATCH=${i#*=}
;;
@@ -213,6 +216,9 @@ downloadPatch () {
if [[ -n $REVIEW_ID ]]; then
echo "Download Patch from Review Board: https://reviews.apache.org/r/$REVIEW_ID/diff/raw at `date`"
$WGET -q -O $PATCH_DIR/patch https://reviews.apache.org/r/$REVIEW_ID/diff/raw
+ elif [[ -n $PR_ID ]]; then
+ echo "Download Patch from Git pull request: https://patch-diff.githubusercontent.com/raw/apache/atlas/pull/$PR_ID.patch at `date`"
+ $WGET -q -O $PATCH_DIR/patch https://patch-diff.githubusercontent.com/raw/apache/atlas/pull/$PR_ID.patch
elif [[ -n $LOCAL_PATCH ]]; then
echo "Using Local Patch in $LOCAL_PATCH at `date`"
else