[java-sig-commits] [javapackages] Run testsuite during release

Stanislav Ochotnicky sochotni at fedoraproject.org
Mon Sep 16 08:08:19 UTC 2013


commit 18c3a2700efe5555040b8d13e80390cccc3321b6
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Mon Sep 16 10:07:21 2013 +0200

    Run testsuite during release

 make_release |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/make_release b/make_release
index 43cf3d3..4889618 100755
--- a/make_release
+++ b/make_release
@@ -42,6 +42,22 @@ fi
 git archive -v --prefix="javapackages-$last_tag/" $last_tag | xz > \
     javapackages-$last_tag.tar.xz
 
+
+# run testsuite before allowing upload/final release
+pushd python
+python setup.py test
+t1=$?
+popd
+pushd "test"
+./run_tests.sh
+t2=$?
+popd
+
+if [[ $t1 -ne 0 || $t2 -ne 0 ]]; then
+    echo "Tests failed, release aborted"
+    exit 1
+fi
+
 read -i 'n' -e -p "Do you want to upload file javapackages-$last_tag.tar.xz to fedorahosted? (y/n): "
 
 if [ "$REPLY" = "y" ];then


More information about the java-sig-commits mailing list