yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-715. yetus always needs mvninstall from root
Date Thu, 15 Nov 2018 04:05:44 GMT
Repository: yetus
Updated Branches:
  refs/heads/master e7819fbdf -> d4b353b2e


YETUS-715. yetus always needs mvninstall from root

Signed-off-by: Sean Busbey <busbey@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/d4b353b2
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/d4b353b2
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/d4b353b2

Branch: refs/heads/master
Commit: d4b353b2e92b3f3ecdab2bcac21a1ac6feae73a2
Parents: e7819fb
Author: Allen Wittenauer <aw@apache.org>
Authored: Sun Nov 11 16:30:42 2018 -0800
Committer: Allen Wittenauer <aw@apache.org>
Committed: Wed Nov 14 20:04:55 2018 -0800

----------------------------------------------------------------------
 precommit/src/main/shell/personality/yetus.sh | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/d4b353b2/precommit/src/main/shell/personality/yetus.sh
----------------------------------------------------------------------
diff --git a/precommit/src/main/shell/personality/yetus.sh b/precommit/src/main/shell/personality/yetus.sh
index 3afa6d2..527aa9c 100755
--- a/precommit/src/main/shell/personality/yetus.sh
+++ b/precommit/src/main/shell/personality/yetus.sh
@@ -30,3 +30,34 @@ function personality_globals
   #shellcheck disable=SC2034
   GITHUB_REPO="apache/yetus"
 }
+
+## @description  Queue up modules for this personality
+## @audience     private
+## @stability    evolving
+## @param        repostatus
+## @param        testtype
+function personality_modules
+{
+  declare repostatus=$1
+  declare testtype=$2
+
+  yetus_debug "Personality: ${repostatus} ${testtype}"
+
+  clear_personality_queue
+
+  case ${testtype} in
+    mvninstall)
+      if [[ "${repostatus}" = branch || "${BUILDMODE}" = full ]]; then
+        clear_personality_queue
+        personality_enqueue_module .
+        return
+      fi
+    ;;
+    *)
+    ;;
+  esac
+
+  if declare -f "${BUILDTOOL}_builtin_personality_modules" >/dev/null; then
+    "${BUILDTOOL}_builtin_personality_modules" "$@"
+  fi
+}
\ No newline at end of file


Mime
View raw message