Files
spring-data-redis/ci/test.sh
Greg L. Turnquist 80bc9749fd Authenticate with artifactory.
See #2023.
2021-04-22 15:51:31 -05:00

24 lines
552 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
# Execute maven test
MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean test -P${PROFILE} -DrunLongTests=${LONG_TESTS:-false} -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