選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

60 行
1.8 KiB

  1. .PHONY: test
  2. test:
  3. export LC_ALL=C.UTF-8; \
  4. export LANG=C.UTF-8; \
  5. unset KOSMORRO_LATITUDE; \
  6. unset KOSMORRO_LONGITUDE; \
  7. unset KOSMORRO_TIMEZONE; \
  8. LANG=C pipenv run python3 -m coverage run -m unittest test
  9. build: manpages
  10. python3 setup.py sdist bdist_wheel
  11. messages:
  12. pipenv run python setup.py extract_messages --output-file=kosmorrolib/locales/messages.pot
  13. manpages:
  14. ronn --roff manpage/kosmorro.1.md
  15. ronn --roff manpage/kosmorro.7.md
  16. i18n:
  17. python3 setup.py compile_catalog; \
  18. env:
  19. @if [[ "$$RELEASE_NUMBER" == "" ]]; \
  20. then echo "Missing environment variable: RELEASE_NUMBER."; \
  21. echo 'Example: export RELEASE_NUMBER="1.0.0" (without the leading "v")'; \
  22. exit 1; \
  23. fi
  24. release: env
  25. @echo -e "\e[1mCreating release with version number \e[36m$$RELEASE_NUMBER\e[0m"
  26. @echo
  27. sed "s/^VERSION =.*/VERSION = '$$RELEASE_NUMBER'/g" kosmorrolib/version.py > version.py
  28. mv version.py kosmorrolib/version.py
  29. pipenv run python setup.py extract_messages --output-file=kosmorrolib/locales/messages.pot > /dev/null
  30. conventional-changelog -p angular -i CHANGELOG.md -s
  31. sed "0,/\\[\\]/s/\\[\\]/[v$$RELEASE_NUMBER]/g" CHANGELOG.md > /tmp/CHANGELOG.md
  32. sed -e "s/...v)/...v$$RELEASE_NUMBER)/" /tmp/CHANGELOG.md > CHANGELOG.md
  33. rm /tmp/CHANGELOG.md
  34. @echo
  35. @echo -e "\e[1mRelease \e[36m$$RELEASE_NUMBER\e[39m is ready to commit."
  36. @echo -e "Please review the changes, then invoke \e[33mmake finish-release\e[39m."
  37. finish-release: env
  38. git add CHANGELOG.md kosmorrolib/version.py kosmorrolib/locales/messages.pot
  39. git commit -m "build: bump version $$RELEASE_NUMBER"
  40. git tag "v$$RELEASE_NUMBER"
  41. git checkout features
  42. git merge master
  43. git checkout master
  44. @echo
  45. @echo -e "\e[1mVersion \e[36m$$RELEASE_NUMBER\e[39m successfully tagged!"
  46. @echo -e "Invoke \e[33mgit push origin master features v$$RELEASE_NUMBER\e[39m to finish."