Skip to content

Commit

Permalink
added release target
Browse files Browse the repository at this point in the history
  • Loading branch information
FND committed Jan 16, 2014
1 parent f1108b8 commit 4b102cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: server instance terminate dist test qtest remotes lint coverage clean
.PHONY: server instance terminate release dist test qtest remotes lint coverage clean

server: terminate
cd dev_instance && export PYTHONPATH="../" && \
Expand All @@ -16,6 +16,14 @@ terminate:
kill -TERM -$$pgid || true; done
rm .server.pid || true

release: test
git diff --exit-code # ensure there are no uncommitted changes
git tag -a -m \
v`python -c 'import mangler; import tiddlywebplugins.bfw as bfw; print bfw.__version__'` \
v`python -c 'import mangler; import tiddlywebplugins.bfw as bfw; print bfw.__version__'`
git push origin master --tags
python setup.py sdist upload

dist: test
python setup.py sdist

Expand Down

0 comments on commit 4b102cf

Please sign in to comment.