Skip to content

Commit

Permalink
Automate git push --tags on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Oct 28, 2016
1 parent ccae335 commit c80ae13
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ check-integration-tests: prepare-real-data check-real-data

.PHONY: prepare-real-data
prepare-real-data: ./tests/raw_input_files
for input_file in "$<"/*; do \
echo "Preparing $$input_file"; \
output_file="./tests/input_files/$$(basename "$$input_file")"; \
sed --regexp-extended '/^(\s*#\s*(\.{2})?\s*.*?)\s*[[({]{3}[[:digit:]]*$$/d;' "$$input_file" > "$$output_file"; \
for raw_input_file in "$<"/*; do \
echo "Preparing $$raw_input_file"; \
io_file="./tests/input_files/$$(basename "$$raw_input_file")"; \
sed --regexp-extended '/^(\s*#\s*(\.{2})?\s*.*?)\s*[[({]{3}[[:digit:]]*$$/d;' "$$raw_input_file" > "$$io_file"; \
done

.PHONY: check-real-data
Expand Down Expand Up @@ -162,7 +162,11 @@ pypi-register: build
pypi-upload: build
twine upload -r "$(PYPI_REPO)" dist_signed/*

.PHONY: git-push
git-push:
git push --tags

.PHONY: release
release: release-prepare pypi-register pypi-upload
release: release-prepare pypi-register pypi-upload git-push

## }}}

0 comments on commit c80ae13

Please sign in to comment.