From a81d25e6e45f6b1d5be31251d08a62b32344f602 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 26 Feb 2014 21:44:04 -0300 Subject: [PATCH] Remove -e option from travis shell script --- scripts/travis.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/travis.sh b/scripts/travis.sh index c956d8b760..5662f5f06d 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -1,11 +1,11 @@ -#!/bin/sh -e +#!/bin/sh export VALGRIND_CHECK=1 -make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist" -make +make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist" || exit 1 +make || exit 1 echo "Running tests with valgrind..." if ! make test > /dev/null 2>&1; then - failed=$(ls src/testdir/valgrind.* || true) + failed=$(ls src/testdir/valgrind.*) if [ -n "$failed" ]; then echo "Memory leak detected" >&2 cat src/testdir/valgrind.* @@ -15,6 +15,6 @@ if ! make test > /dev/null 2>&1; then echo ${t%%.*} done fi - exit 2 + exit 1 fi make install