HBASE-19060 precommit plugin test 'hadoopcheck' should only run when java or maven files change.

Signed-off-by: Mike Drob <mdrob@apache.org>
This commit is contained in:
Sean Busbey 2017-10-20 11:08:35 -05:00
parent bd9c37367e
commit 01ab747a5f
1 changed files with 6 additions and 2 deletions

View File

@ -218,7 +218,7 @@ function hadoopcheck_filefilter
{
local filename=$1
if [[ ${filename} =~ \.java$ ]]; then
if [[ ${filename} =~ \.java$ ]] || [[ ${filename} =~ pom.xml$ ]]; then
add_test hadoopcheck
fi
}
@ -241,6 +241,10 @@ function hadoopcheck_rebuild
return 0
fi
if ! verify_needed_test hadoopcheck; then
return 0
fi
big_console_header "Compiling against various Hadoop versions"
# All supported Hadoop versions that we want to test the compilation with
@ -317,7 +321,7 @@ function hbaseprotoc_filefilter
fi
}
## @description hadoopcheck test
## @description check hbase proto compilation
## @audience private
## @stability evolving
## @param repostatus