DATAREDIS-920 - Force Makefile to fail during maven failure.

This commit is contained in:
Greg Turnquist
2019-03-13 19:35:00 -05:00
parent 80bfded8b0
commit 6574d70fc5
2 changed files with 4 additions and 3 deletions

View File

@@ -14,6 +14,7 @@
REDIS_VERSION:=5.0.0
SPRING_PROFILE?=ci
SHELL=/bin/bash -euo pipefail
#######
# Redis
@@ -149,5 +150,5 @@ stop: redis-stop sentinel-stop cluster-stop
test:
$(MAKE) start
sleep 2
./mvnw clean test -DrunLongTests=true -P$(SPRING_PROFILE)
set -euo pipefail ; ./mvnw clean test -DrunLongTests=true -P$(SPRING_PROFILE)
$(MAKE) stop

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
set -euo pipefail
@@ -8,7 +8,7 @@ rm -rf $HOME/.m2/repository/org/springframework/data/redis 2> /dev/null || :
cd spring-data-redis-github
ln -s /work x
ln -sf /work
# Maven run from inside Makefile to interact with Redis server.
make test SPRING_PROFILE=spring5-next