utils/publish_package_our_pypi.sh
author Ben Hearsum <bhearsum@mozilla.com>
Thu, 07 Dec 2017 12:56:26 -0500
changeset 648 c522a8e68bd5
parent 428 28ab30f6b31d
permissions -rwxr-xr-x
Use fast mode for task graph generation when not in --full mode.

#!/bin/bash -e

filename_fullpath="${1}"
filename_basename="$(basename "${filename_fullpath}")"
scp "${filename_fullpath}" "$(whoami)@relengwebadm.private.scl3.mozilla.com:"
ssh "$(whoami)@relengwebadm.private.scl3.mozilla.com" "
    sudo mv -vi '${filename_basename}' /mnt/netapp/relengweb/pypi/pub/;
    sudo chmod 644 '/mnt/netapp/relengweb/pypi/pub/${filename_basename}';
"
final_url="http://pypi.pub.build.mozilla.org/pub/${filename_basename}"
echo
echo "Testing ${final_url} ..."
curl -I "${final_url}" 2>&1