Makefile 418 B

123456789101112131415161718
  1. test:
  2. vendor/bin/phpunit $(TEST)
  3. check-tag:
  4. $(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1"))
  5. tag: check-tag
  6. @echo Tagging $(TAG)
  7. chag update $(TAG)
  8. git commit -a -m '$(TAG) release'
  9. chag tag
  10. @echo "Release has been created. Push using 'make release'"
  11. @echo "Changes made in the release commit"
  12. git diff HEAD~1 HEAD
  13. release: check-tag
  14. git push origin master
  15. git push origin $(TAG)