From 6574d70fc519597e0dd1a7151dabfc24085ea6d2 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Wed, 13 Mar 2019 19:35:00 -0500 Subject: [PATCH] DATAREDIS-920 - Force Makefile to fail during maven failure. --- Makefile | 3 ++- ci/test.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fd4f99053..08577f7b4 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/ci/test.sh b/ci/test.sh index 6b0a8fe0d..ffaa2114d 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -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