pmd/.ci/build-pr.sh
Andreas Dangel 70f2c56888 Resolve maven dependencies before building
This tries to solve build timeouts while downloading dependencies.
Also the job timeout for PRs is 30 minutes - if it takes longer,
something is wrong.
2020-11-13 11:37:05 +01:00

25 lines
523 B
Bash
Executable File

#!/usr/bin/env bash
source $(dirname $0)/inc/logger.inc
source $(dirname $0)/inc/setup-secrets.inc
source $(dirname $0)/inc/regression-tester.inc
source $(dirname $0)/inc/maven-dependencies.inc
source ${HOME}/java.env
set -e
#set -x
maven_dependencies_resolve
./mvnw -e -V clean verify
# Danger is executed only on the linux runner
case "$(uname)" in
Linux*)
log_info "Executing danger..."
pmd_ci_setup_env
regression_tester_setup_ci
regression_tester_executeDanger
;;
esac