YETUS-357. build driver for hadoop shouldn't union unit tests Signed-off-by: Allen Wittenauer <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/b7722bd5 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/b7722bd5 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/b7722bd5 Branch: refs/heads/YETUS-156 Commit: b7722bd5b7e72997faa880b6c8715dbdec8e3169 Parents: 67d3284 Author: Allen Wittenauer <[email protected]> Authored: Tue Apr 12 09:03:20 2016 -0700 Committer: Allen Wittenauer <[email protected]> Committed: Fri Apr 22 13:25:07 2016 -0700 ---------------------------------------------------------------------- precommit/personality/hadoop.sh | 10 ++++++++-- precommit/test-patch.d/maven.sh | 10 ++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/b7722bd5/precommit/personality/hadoop.sh ---------------------------------------------------------------------- diff --git a/precommit/personality/hadoop.sh b/precommit/personality/hadoop.sh index d23b6be..5b96994 100755 --- a/precommit/personality/hadoop.sh +++ b/precommit/personality/hadoop.sh @@ -46,8 +46,12 @@ function hadoop_order if [[ ${ordering} = normal ]]; then hadoopm="${CHANGED_MODULES[*]}" - elif [[ ${ordering} = union ]]; then + elif [[ ${ordering} = union ]]; then hadoopm="${CHANGED_UNION_MODULES}" + elif [[ ${ordering} = mvnsrc ]]; then + hadoopm="${MAVEN_SRC_MODULES[*]}" + elif [[ ${ordering} = mvnsrctest ]]; then + hadoopm="${MAVEN_SRCTEST_MODULES[*]}" else hadoopm="${ordering}" fi @@ -236,7 +240,9 @@ function personality_modules fi ;; unit) - if [[ "${CHANGED_MODULES[*]}" =~ \. ]]; then + if [[ "${BUILDMODE}" = full ]]; then + ordering=mvnsrc + elif [[ "${CHANGED_MODULES[*]}" =~ \. ]]; then ordering=. fi http://git-wip-us.apache.org/repos/asf/yetus/blob/b7722bd5/precommit/test-patch.d/maven.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.d/maven.sh b/precommit/test-patch.d/maven.sh index 32f4b37..77aab32 100755 --- a/precommit/test-patch.d/maven.sh +++ b/precommit/test-patch.d/maven.sh @@ -685,6 +685,16 @@ function maven_reorder_modules yetus_debug "Maven: finish re-ordering modules" yetus_debug "Finished list: ${CHANGED_MODULES[*]}" + # build some utility module lists for maven modules + for index in "${CHANGED_MODULES[@]}"; do + if [[ -d "${index}/src" ]]; then + MAVEN_SRC_MODULES=("${MAVEN_SRC_MODULES[@]}" "${index}") + if [[ -d "${index}/src/test" ]]; then + MAVEN_SRCTEST_MODULES=("${MAVEN_SRCTEST_MODULES[@]}" "${index}") + fi + fi + done + if [[ "${BUILDMODE}" = patch ]]; then add_vote_table 0 mvndep "Maven dependency ordering for ${repostatus}" else
