From cabd848b1e349242d611aa581fe04b1192dab7e8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 19 Jan 2014 18:08:59 +1300 Subject: Release test script and checklist. --- release/test-release | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 release/test-release (limited to 'release/test-release') diff --git a/release/test-release b/release/test-release new file mode 100755 index 00000000..8b53c14c --- /dev/null +++ b/release/test-release @@ -0,0 +1,37 @@ +#!/bin/bash + +MITMPROXY_DIR=~/mitmproxy/mitmproxy +NETLIB_DIR=~/mitmproxy/netlib +PATHOD_DIR=~/mitmproxy/pathod +DST=/tmp/mitmproxy_release + +rm -rf $DST +mkdir -p $DST + +cd $NETLIB_DIR +echo "Creating netlib source distribution..." +python ./setup.py -q sdist --dist-dir $DST + +echo "Creating mitmproxy source distribution..." +cd $MITMPROXY_DIR +python ./setup.py -q sdist --dist-dir $DST + +echo "Creating pathod source distribution..." +cd $PATHOD_DIR +python ./setup.py -q sdist --dist-dir $DST + +echo "Creating virtualenv for test install..." +virtualenv -q $DST/venv + +echo "Installing netlib..." +$DST/venv/bin/pip -q install --download-cache ~/.pipcache $DST/netlib* +echo "Installing pathod..." +$DST/venv/bin/pip -q install --download-cache ~/.pipcache $DST/pathod* +echo "Installing mitmproxy..." +$DST/venv/bin/pip -q install --download-cache ~/.pipcache $DST/mitmproxy* + +echo "Running binaries..." +$DST/venv/bin/mitmproxy --version +$DST/venv/bin/mitmdump --version +$DST/venv/bin/pathod --version +$DST/venv/bin/pathoc --version -- cgit v1.2.3