Files
spring-data-redis/ci/test.sh
Eric Haag 5453b0b083 Migrate build to Spring Develocity Conventions extension.
* Migrate build to Spring Develocity Conventions extension.

* Adopt Develocity environment variables.

Closes #2947
2024-08-01 10:22:22 +02:00

26 lines
651 B
Bash
Executable File

#!/bin/bash -x
set -euo pipefail
rm -f work
# Create link to directory with Redis binaries
cwd=$(pwd)
# Launch Redis in proper configuration
pushd /tmp && ln -s /work && make -f $cwd/Makefile start && popd
export JENKINS_USER=${JENKINS_USER_NAME}
# Execute maven test
MAVEN_OPTS="-Duser.name=${JENKINS_USER} -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean test -P${PROFILE} -DrunLongTests=${LONG_TESTS:-false} -Dredis.server.version=${REDIS_VERSION:-unknown} -U -B
# Capture resulting exit code from maven (pass/fail)
RESULT=$?
# Shutdown Redis
pushd /tmp && make -f $cwd/Makefile stop && popd
# Return maven results
exit $RESULT