deliver.sh
#!/bin/bash
source venv/bin/activate
git rebase
git status
pip install --upgrade -r requirements.txt
head HISTORY.rst
echo -n "Do you want to add something in HISTORY.rst? (y/n) [n]: "
read BOOL
if [ "$BOOL" == "y" ]
then
exit 1
fi
echo ""
echo "Running test"
python setup.py develop
make test
echo -n "Is it OK? (y/n) [y]: "
read BOOL
if [ "$BOOL" == "n" ]
then
exit 1
fi
echo ""
echo "Delivering"
make bump
until make release
do
echo "Try again"
done
until git push
do
echo "Try again"
done
until git push --tags
do
echo "Try again"
done
echo "Edit the release on GitHub (https://github.com/vpoulailleau/pydxl/releases)"
echo "Done"