Skip to content

Commit

Permalink
Add tagging to release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
houtianze committed May 4, 2017
1 parent 7c8d0c5 commit 56123ef
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

#set -o errexit
set -o errexit
#set -x

py2venv="$HOME/Documents/t/venv27"
Expand All @@ -11,6 +11,7 @@ build=0
install=0
upload=0
testit=0
tagit=0

createvenv() {
if [ ! -d "$py2venv" ]
Expand Down Expand Up @@ -42,6 +43,9 @@ parsearg() {
t)
testit=1
;;
g)
tagit=1
;;
esac
done
}
Expand Down Expand Up @@ -84,14 +88,22 @@ main() {
repoopt=""
indexopt=""
fi

if [ "$tagit" -eq 1 ]
then
bypyverion=`grep __version__ bypy/const.py | sed -E "s/^.*'(.*)'$/\1/"`
git tags
git tag "$bypyversion"
git push --tags
git tags
fi

if [ "$testit" -eq 1 ]
then
doctest python2
doctest python3
fi


if [ "$build" -eq 1 ]
then
rm -Rf dist/*
Expand Down

0 comments on commit 56123ef

Please sign in to comment.