Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1E707200BCC for ; Tue, 15 Nov 2016 00:37:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1CF7C160B0D; Mon, 14 Nov 2016 23:37:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 657AE160B06 for ; Tue, 15 Nov 2016 00:37:47 +0100 (CET) Received: (qmail 37009 invoked by uid 500); 14 Nov 2016 23:37:46 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 36998 invoked by uid 99); 14 Nov 2016 23:37:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2016 23:37:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 76E33DFFAB; Mon, 14 Nov 2016 23:37:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mshuler@apache.org To: commits@cassandra.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cassandra-builds git commit: Add artifacts and unittest build scripts Date: Mon, 14 Nov 2016 23:37:46 +0000 (UTC) archived-at: Mon, 14 Nov 2016 23:37:48 -0000 Repository: cassandra-builds Updated Branches: refs/heads/master 4bf0ea6ae -> 1c49e7003 Add artifacts and unittest build scripts Project: http://git-wip-us.apache.org/repos/asf/cassandra-builds/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra-builds/commit/1c49e700 Tree: http://git-wip-us.apache.org/repos/asf/cassandra-builds/tree/1c49e700 Diff: http://git-wip-us.apache.org/repos/asf/cassandra-builds/diff/1c49e700 Branch: refs/heads/master Commit: 1c49e70033e8ed55f8aa4e9880e54142e3ca367f Parents: 4bf0ea6 Author: Michael Shuler Authored: Mon Nov 14 17:37:05 2016 -0600 Committer: Michael Shuler Committed: Mon Nov 14 17:37:05 2016 -0600 ---------------------------------------------------------------------- build-scripts/cassandra-artifacts.sh | 39 +++++++++++++++++++++++++++++++ build-scripts/cassandra-unittest.sh | 36 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/1c49e700/build-scripts/cassandra-artifacts.sh ---------------------------------------------------------------------- diff --git a/build-scripts/cassandra-artifacts.sh b/build-scripts/cassandra-artifacts.sh new file mode 100755 index 0000000..dd480e7 --- /dev/null +++ b/build-scripts/cassandra-artifacts.sh @@ -0,0 +1,39 @@ +#!/bin/bash -xe + +################################ +# +# Prep +# +################################ + +# Sphinx is needed for the gen-doc target +virtualenv venv +source venv/bin/activate +pip install Sphinx sphinx_rtd_theme + +################################ +# +# Main +# +################################ + +# Loop to prevent failure due to maven-ant-tasks not downloading a jar.. +set +e # disable immediate exit from this point +for x in $(seq 1 3); do + ant clean artifacts + RETURN="$?" + if [ "${RETURN}" -eq "0" ]; then + break + fi +done + +################################ +# +# Clean +# +################################ + +# /virtualenv +deactivate + +exit "${RETURN}" http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/1c49e700/build-scripts/cassandra-unittest.sh ---------------------------------------------------------------------- diff --git a/build-scripts/cassandra-unittest.sh b/build-scripts/cassandra-unittest.sh new file mode 100755 index 0000000..0c91c26 --- /dev/null +++ b/build-scripts/cassandra-unittest.sh @@ -0,0 +1,36 @@ +#!/bin/bash -x + +################################ +# +# Prep +# +################################ + +# Pass in target to run, default to `ant test` +TEST_TARGET="${1:-test}" + +################################ +# +# Main +# +################################ + +# Loop to prevent failure due to maven-ant-tasks not downloading a jar.. +for x in $(seq 1 3); do + ant clean jar + RETURN="$?" + if [ "${RETURN}" -eq "0" ]; then + # Run target and exit cleanly for usable "Unstable" status + ant "${TEST_TARGET}" + exit 0 + fi +done + +################################ +# +# Clean +# +################################ + +# If we failed `ant jar` loop +exit "${RETURN}"