mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Resolves #1597. See: - https://github.com/google/error-prone/releases/tag/v2.37.0 - https://github.com/google/error-prone/compare/v2.36.0...v2.37.0 - https://github.com/PicnicSupermarket/error-prone/compare/v2.36.0-picnic-4...v2.37.0-picnic-1
33 lines
941 B
Bash
Executable File
33 lines
941 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e -u -o pipefail
|
|
|
|
test_name="$(basename "${0}" .sh)"
|
|
project='metrics'
|
|
repository='https://github.com/dropwizard/metrics.git'
|
|
revision='v5.0.0-rc22'
|
|
additional_build_flags=''
|
|
additional_source_directories=''
|
|
shared_error_prone_flags='-XepExcludedPaths:.*/target/generated-sources/.* -XepOpt:Slf4jLoggerDeclaration:CanonicalStaticLoggerName=LOGGER'
|
|
patch_error_prone_flags=''
|
|
validation_error_prone_flags=''
|
|
validation_build_flags=''
|
|
|
|
if [ "${#}" -gt 2 ] || ([ "${#}" = 2 ] && [ "${1:---sync}" != '--sync' ]); then
|
|
>&2 echo "Usage: ${0} [--sync] [<report_directory>]"
|
|
exit 1
|
|
fi
|
|
|
|
"$(dirname "${0}")/run-integration-test.sh" \
|
|
"${test_name}" \
|
|
"${project}" \
|
|
"${repository}" \
|
|
"${revision}" \
|
|
"${additional_build_flags}" \
|
|
"${additional_source_directories}" \
|
|
"${shared_error_prone_flags}" \
|
|
"${patch_error_prone_flags}" \
|
|
"${validation_error_prone_flags}" \
|
|
"${validation_build_flags}" \
|
|
$@
|