dadrus / jpa-unit

JUnit extension to test javax.persistence entities
Apache License 2.0
29 stars 9 forks source link

Automate release builds #43

Open dadrus opened 6 years ago

dadrus commented 6 years ago

It would help a lot if a release can be built and published by just pushing to the release branch. Here the corresponding script should perform following steps:

  1. verify the pushed commit has already been built and successfully tested in the master branch. Otherwise fail.
  2. read the revision value from the top level pom.xml
  3. run the build without tests using the release profile and by setting the revision parameter to the read value from 2 without the -SNAPSHOT suffix.
  4. If the build is successful, tag it using the value from 2 with v prefix and without the -SNAPSHOT suffix. Otherwise fail.
  5. Increment the minor version in the value from 2 and update the revision property in the pom.xml.
  6. Commit the change
  7. Push all changes (commit from 6 and tag from 4) to the origin master.