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