2020-11-12 13:11:56 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source $(dirname $0)/inc/logger.inc
|
|
|
|
source $(dirname $0)/inc/regression-tester.inc
|
2020-11-13 11:37:05 +01:00
|
|
|
source $(dirname $0)/inc/maven-dependencies.inc
|
2020-11-12 13:11:56 +01:00
|
|
|
source ${HOME}/java.env
|
|
|
|
|
|
|
|
set -e
|
|
|
|
#set -x
|
|
|
|
|
2020-11-13 11:37:05 +01:00
|
|
|
maven_dependencies_resolve
|
|
|
|
|
2020-11-13 14:44:39 +01:00
|
|
|
log_group_start "Building with maven"
|
2020-11-12 18:35:04 +01:00
|
|
|
./mvnw -e -V clean verify
|
2020-11-13 14:44:39 +01:00
|
|
|
log_group_end
|
|
|
|
|
2020-11-12 13:11:56 +01:00
|
|
|
|
|
|
|
# Danger is executed only on the linux runner
|
|
|
|
case "$(uname)" in
|
|
|
|
Linux*)
|
2020-11-13 14:44:39 +01:00
|
|
|
log_group_start "Executing danger"
|
2020-11-12 13:11:56 +01:00
|
|
|
regression_tester_setup_ci
|
|
|
|
regression_tester_executeDanger
|
2020-11-13 14:44:39 +01:00
|
|
|
log_group_end
|
2020-11-12 13:11:56 +01:00
|
|
|
;;
|
|
|
|
esac
|