YETUS-388. test-patch fails when no maven found Signed-off-by: Kengo Seki <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/e9362a03 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/e9362a03 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/e9362a03 Branch: refs/heads/YETUS-379 Commit: e9362a03961f60e090943ad570d72afb0c7b6477 Parents: 6c00386 Author: Allen Wittenauer <[email protected]> Authored: Thu Apr 28 12:23:56 2016 -0700 Committer: Kengo Seki <[email protected]> Committed: Sun May 1 15:54:28 2016 +0900 ---------------------------------------------------------------------- precommit/core.d/01-common.sh | 3 ++- precommit/personality/accumulo.sh | 2 ++ precommit/personality/drill.sh | 2 ++ precommit/personality/flink.sh | 4 +++- precommit/personality/hadoop.sh | 2 ++ precommit/personality/hbase.sh | 1 + precommit/personality/tajo.sh | 2 ++ precommit/personality/tez.sh | 2 ++ precommit/test-patch.sh | 1 - 9 files changed, 16 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/core.d/01-common.sh ---------------------------------------------------------------------- diff --git a/precommit/core.d/01-common.sh b/precommit/core.d/01-common.sh index f31d613..829cc9e 100755 --- a/precommit/core.d/01-common.sh +++ b/precommit/core.d/01-common.sh @@ -23,6 +23,7 @@ function common_defaults #shellcheck disable=SC2034 BASEDIR=$(pwd) BUGSYSTEMS="" + BUILDTOOL="nobuild" BUILDTOOLS="" #shellcheck disable=SC2034 EXEC_MODES="" @@ -258,7 +259,7 @@ function plugins_initialize { declare plugin - for plugin in ${TESTTYPES} ${BUGSYSTEMS} ${TESTFORMATS} ${BUILDTOOLS}; do + for plugin in ${TESTTYPES} ${BUGSYSTEMS} ${TESTFORMATS} ${BUILDTOOL}; do if declare -f ${plugin}_initialize >/dev/null 2>&1; then yetus_debug "Running ${plugin}_initialize" #shellcheck disable=SC2086 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/accumulo.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/accumulo.sh b/precommit/personality/accumulo.sh index d99bf82..f2d3e7c 100755 --- a/precommit/personality/accumulo.sh +++ b/precommit/personality/accumulo.sh @@ -22,6 +22,8 @@ personality_plugins "all" ## @stability evolving function personality_globals { + # shellcheck disable=SC2034 + BUILDTOOL=maven #shellcheck disable=SC2034 PATCH_BRANCH_DEFAULT=master #shellcheck disable=SC2034 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/drill.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/drill.sh b/precommit/personality/drill.sh index b58ed07..cc35d45 100755 --- a/precommit/personality/drill.sh +++ b/precommit/personality/drill.sh @@ -21,6 +21,8 @@ personality_plugins "all" ## @stability evolving function personality_globals { + # shellcheck disable=SC2034 + BUILDTOOL=maven #shellcheck disable=SC2034 GITHUB_REPO="apache/drill" #shellcheck disable=SC2034 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/flink.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/flink.sh b/precommit/personality/flink.sh index 76fa418..a9c0fdf 100755 --- a/precommit/personality/flink.sh +++ b/precommit/personality/flink.sh @@ -21,6 +21,8 @@ personality_plugins "all" ## @stability evolving function personality_globals { + # shellcheck disable=SC2034 + BUILDTOOL=maven #shellcheck disable=SC2034 PATCH_BRANCH_DEFAULT=master #shellcheck disable=SC2034 @@ -110,4 +112,4 @@ function flinklib_rebuild "$((FLINK_PRE_LIB_FILES-FLINK_POST_LIB_FILES))." fi return 0 -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/hadoop.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/hadoop.sh b/precommit/personality/hadoop.sh index 5b96994..2bbfd0e 100755 --- a/precommit/personality/hadoop.sh +++ b/precommit/personality/hadoop.sh @@ -23,6 +23,8 @@ personality_plugins "all,-ant,-gradle,-scalac,-scaladoc" ## @stability evolving function personality_globals { + # shellcheck disable=SC2034 + BUILDTOOL=maven #shellcheck disable=SC2034 PATCH_BRANCH_DEFAULT=trunk #shellcheck disable=SC2034 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/hbase.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/hbase.sh b/precommit/personality/hbase.sh index 5e6f0dc..ff2b516 100755 --- a/precommit/personality/hbase.sh +++ b/precommit/personality/hbase.sh @@ -21,6 +21,7 @@ personality_plugins "all" ## @stability evolving function personality_globals { + BUILDTOOL=maven #shellcheck disable=SC2034 PROJECT_NAME=hbase #shellcheck disable=SC2034 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/tajo.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/tajo.sh b/precommit/personality/tajo.sh index 32b4242..fb86ff7 100755 --- a/precommit/personality/tajo.sh +++ b/precommit/personality/tajo.sh @@ -21,6 +21,8 @@ personality_plugins "all" ## @stability evolving function personality_globals { + # shellcheck disable=SC2034 + BUILDTOOL=maven #shellcheck disable=SC2034 PATCH_BRANCH_DEFAULT=master #shellcheck disable=SC2034 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/personality/tez.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/tez.sh b/precommit/personality/tez.sh index 4b0e3ec..32d9ffc 100755 --- a/precommit/personality/tez.sh +++ b/precommit/personality/tez.sh @@ -21,6 +21,8 @@ personality_plugins "all" ## @stability evolving function personality_globals { + # shellcheck disable=SC2034 + BUILDTOOL=maven #shellcheck disable=SC2034 PATCH_BRANCH_DEFAULT=master #shellcheck disable=SC2034 http://git-wip-us.apache.org/repos/asf/yetus/blob/e9362a03/precommit/test-patch.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh index 05a075e..ec18134 100755 --- a/precommit/test-patch.sh +++ b/precommit/test-patch.sh @@ -98,7 +98,6 @@ function setup_defaults BUILDMODEMSG="The patch" ISSUE="" TIMER=$(date +"%s") - BUILDTOOL=maven JVM_REQUIRED=true yetus_add_entry JDK_TEST_LIST compile yetus_add_entry JDK_TEST_LIST unit
