Repository: cassandra-builds Updated Branches: refs/heads/master ce91316c1 -> bdb23517c
Add dtest build script Project: http://git-wip-us.apache.org/repos/asf/cassandra-builds/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra-builds/commit/bdb23517 Tree: http://git-wip-us.apache.org/repos/asf/cassandra-builds/tree/bdb23517 Diff: http://git-wip-us.apache.org/repos/asf/cassandra-builds/diff/bdb23517 Branch: refs/heads/master Commit: bdb23517c8028ea59deb3f5153f13aa80fa4be40 Parents: ce91316 Author: Michael Shuler <mich...@pbandjelly.org> Authored: Wed Nov 30 15:54:28 2016 -0600 Committer: Michael Shuler <mich...@pbandjelly.org> Committed: Wed Nov 30 15:54:28 2016 -0600 ---------------------------------------------------------------------- build-scripts/cassandra-dtest.sh | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/bdb23517/build-scripts/cassandra-dtest.sh ---------------------------------------------------------------------- diff --git a/build-scripts/cassandra-dtest.sh b/build-scripts/cassandra-dtest.sh new file mode 100755 index 0000000..e96b089 --- /dev/null +++ b/build-scripts/cassandra-dtest.sh @@ -0,0 +1,55 @@ +#!/bin/bash -x + +################################ +# +# Prep +# +################################ + +export PYTHONIOENCODING="utf-8" +export PYTHONUNBUFFERED=true +export CASS_DRIVER_NO_EXTENSIONS=true +export CASS_DRIVER_NO_CYTHON=true +export CCM_MAX_HEAP_SIZE="2048M" +export CCM_HEAP_NEWSIZE="200M" +export NUM_TOKENS="32" +export CASSANDRA_DIR=${WORKSPACE} + +# 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 + break + fi +done + +# Set up venv with dtest dependencies +set -e # enable immediate exit if venv setup fails +virtualenv venv +source venv/bin/activate +pip install -r cassandra-dtest/requirements.txt +pip freeze + +################################ +# +# Main +# +################################ + +cd cassandra-dtest/ +rm -r upgrade_tests/ # TEMP: remove upgrade_tests +set +e # disable immediate exit from this point +./run_dtests.py --vnodes true --nose-options="--verbosity=3 --with-xunit --nocapture --attr=!resource-intensive" | tee -a ${WORKSPACE}/test_stdout.txt + +################################ +# +# Clean +# +################################ + +# /virtualenv +deactivate + +# Exit cleanly for usable "Unstable" status +exit 0