Skip to content

Commit 3e35553

Browse files
committed
DATAREDIS-1258 - Polishing.
1 parent 0914bc9 commit 3e35553

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ci/test.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash -x
2+
3+
set -euo pipefail
4+
5+
rm -f work
6+
7+
# Create link to directory with Redis binaries
8+
cwd=$(pwd)
9+
10+
# Launch Redis in proper configuration
11+
pushd /tmp && ln -s /work && make -f $cwd/Makefile start && popd
12+
13+
# Execute maven test
14+
MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean test -P${PROFILE} -DrunLongTests=${LONG_TESTS:-false} -B
15+
16+
# Capture resulting exit code from maven (pass/fail)
17+
RESULT=$?
18+
19+
# Shutdown Redis
20+
pushd /tmp && make -f $cwd/Makefile stop && popd
21+
22+
# Return maven results
23+
exit $RESULT

0 commit comments

Comments
 (0)