From 3e355534c4b0056436ec09e247f6fa6db9ca8577 Mon Sep 17 00:00:00 2001 From: "Greg L. Turnquist" Date: Wed, 16 Dec 2020 09:36:55 -0600 Subject: [PATCH] DATAREDIS-1258 - Polishing. --- ci/test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ci/test.sh diff --git a/ci/test.sh b/ci/test.sh new file mode 100755 index 000000000..a0ce00d89 --- /dev/null +++ b/ci/test.sh @@ -0,0 +1,23 @@ +#!/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 clean test -P${PROFILE} -DrunLongTests=${LONG_TESTS:-false} -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 \ No newline at end of file