mirror of https://github.com/apache/maven.git
o toss out the log of the build if something goes wrong, otherwise just
indicate things went OK. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cad4fb9326
commit
125b833abc
|
@ -12,10 +12,6 @@ integration_tests=`cat integration-tests.txt | egrep -v '^#'`
|
||||||
|
|
||||||
for integration_test in $integration_tests
|
for integration_test in $integration_tests
|
||||||
do
|
do
|
||||||
|
|
||||||
echo "----------------------------------------------------------"
|
|
||||||
echo "Running integration test $integration_test ..."
|
|
||||||
echo "----------------------------------------------------------"
|
|
||||||
(
|
(
|
||||||
cd $integration_test
|
cd $integration_test
|
||||||
|
|
||||||
|
@ -27,7 +23,6 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
m2 clean:clean `cat goals.txt`
|
m2 clean:clean `cat goals.txt`
|
||||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
||||||
|
|
||||||
if [ -f postbuild.hook ]
|
if [ -f postbuild.hook ]
|
||||||
then
|
then
|
||||||
|
@ -39,7 +34,16 @@ do
|
||||||
basedir=.
|
basedir=.
|
||||||
|
|
||||||
java -cp "$cp" $verifier "$basedir"
|
java -cp "$cp" $verifier "$basedir"
|
||||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
) > ${integration_test}-log.txt
|
||||||
)
|
|
||||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
if [ "$?" = "0" ]
|
||||||
|
then
|
||||||
|
echo "Integration test $integration_test OK"
|
||||||
|
else
|
||||||
|
echo "Integration test $integration_test FAILED!"
|
||||||
|
echo "Details:"
|
||||||
|
cat ${integration_test}-log.txt
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue