We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0914bc9 commit 3e35553Copy full SHA for 3e35553
ci/test.sh
@@ -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