HBASE-20153 Add error prone to precommit
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/f7323881 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f7323881 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f7323881 Branch: refs/heads/branch-2.0 Commit: f7323881b2f392e004b87f589cece046599543c5 Parents: 261acca Author: Mike Drob <md...@apache.org> Authored: Fri Mar 9 15:48:44 2018 -0600 Committer: Mike Drob <md...@apache.org> Committed: Mon Mar 12 16:34:33 2018 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/f7323881/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index b2fc76e..b67777a 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -155,6 +155,10 @@ function personality_modules return fi + if [[ ${testtype} == compile ]]; then + extra="${extra} -PerrorProne" + fi + # If EXCLUDE_TESTS_URL/INCLUDE_TESTS_URL is set, fetches the url # and sets -Dtest.exclude.pattern/-Dtest to exclude/include the # tests respectively.