Skip to content

Commit

Permalink
unify release.sh across all Python projects
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Nov 11, 2015
1 parent 4713ced commit 71a7efe
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions release.sh
Expand Up @@ -12,17 +12,23 @@ git --version

version=$1

sed -i "s/__version__ = .*/__version__ = '${version}'/" stups_cli/__init__.py
python3 setup.py clean
python3 setup.py test
python3 setup.py flake8
sed -i "s/__version__ = .*/__version__ = '${version}'/" */__init__.py

git add stups_cli/__init__.py
# Do not tag/push on Go CD
if [ -z "$GO_PIPELINE_LABEL" ]; then
python3 setup.py clean
python3 setup.py test
python3 setup.py flake8

git commit -m "Bumped version to $version"
git push
git add */__init__.py

git commit -m "Bumped version to $version"
git push
fi

python3 setup.py sdist bdist_wheel upload

git tag ${version}
git push --tags
if [ -z "$GO_PIPELINE_LABEL" ]; then
git tag ${version}
git push --tags
fi

0 comments on commit 71a7efe

Please sign in to comment.