apply release process
This commit is contained in:
parent
fc07173e89
commit
c13d39b066
2 changed files with 34 additions and 15 deletions
|
@ -183,13 +183,7 @@ def destroy(project):
|
|||
## Release
|
||||
|
||||
```
|
||||
adjust version no in build.py to release version no.
|
||||
git commit -am "release"
|
||||
git tag -am "release" [release version no]
|
||||
git push --follow-tags
|
||||
increase version no in build.py
|
||||
git commit -am "version bump"
|
||||
git push
|
||||
pyb lint [dev|patch|minor|major] prepare_release publish tag_bump_and_push_release upload
|
||||
pip3 install --upgrade --user ddadevops
|
||||
```
|
||||
|
||||
|
|
41
build.py
41
build.py
|
@ -28,12 +28,12 @@ use_plugin("python.distutils")
|
|||
|
||||
#use_plugin("python.install_dependencies")
|
||||
|
||||
default_task = "publish"
|
||||
default_task = "dev"
|
||||
|
||||
name = "ddadevops"
|
||||
MODULE = "not-used"
|
||||
PROJECT_ROOT_PATH = "."
|
||||
version = "4.0.0-dev72"
|
||||
version = "4.0.0-dev73"
|
||||
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
||||
description = __doc__
|
||||
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
||||
|
@ -111,13 +111,38 @@ def lint(project):
|
|||
|
||||
@task
|
||||
def patch(project):
|
||||
build = get_devops_build(project)
|
||||
build.update_release_type("PATCH")
|
||||
#build.prepare_release()
|
||||
test(project)
|
||||
lint(project)
|
||||
#build.tag_bump_and_push_release()
|
||||
build(project, "PATCH")
|
||||
|
||||
@task
|
||||
def minor(project):
|
||||
build(project, "MINOR")
|
||||
|
||||
@task
|
||||
def major(project):
|
||||
build(project, "MAJOR")
|
||||
|
||||
@task
|
||||
def dev(project):
|
||||
build(project, "NONE")
|
||||
|
||||
@task
|
||||
def nothing(project):
|
||||
pass
|
||||
|
||||
@task
|
||||
def prepare_release(project):
|
||||
build = get_devops_build(project)
|
||||
build.prepare_release()
|
||||
|
||||
@task
|
||||
def tag_bump_and_push_release(project):
|
||||
build = get_devops_build(project)
|
||||
build.tag_bump_and_push_release()
|
||||
|
||||
|
||||
def build(project, release_type):
|
||||
build = get_devops_build(project)
|
||||
# TODO: release_type is here a string!
|
||||
build.update_release_type(release_type)
|
||||
test(project)
|
||||
lint(project)
|
||||
|
|
Loading…
Reference in a new issue