make release more simple

This commit is contained in:
Michael Jerger 2023-07-14 13:27:11 +02:00
parent 146e11a1de
commit 0a40e5e213
2 changed files with 17 additions and 13 deletions

View file

@ -186,7 +186,7 @@ def destroy(project):
pyb dev publish upload
pip3 install --upgrade ddadevops --pre
pyb [patch|minor|major] release
pyb [patch|minor|major]
pip3 install --upgrade ddadevops
```

View file

@ -144,41 +144,45 @@ def lint(project):
@task
def patch(project):
build(project, "PATCH")
linttest(project, "PATCH")
release(project)
@task
def minor(project):
build(project, "MINOR")
linttest(project, "MINOR")
release(project)
@task
def major(project):
build(project, "MAJOR")
linttest(project, "MAJOR")
release(project)
@task
def dev(project):
build(project, "NONE")
linttest(project, "NONE")
@task
def nothing(project):
pass
@task
def release(project):
def prepare(project):
build = get_devops_build(project)
build.prepare_release()
@task
def tag_bump_and_push_release(project):
def tag(project):
build = get_devops_build(project)
build.tag_bump_and_push_release()
def build(project, release_type):
def release(project):
prepare(project)
tag(project)
def linttest(project, release_type):
build = get_devops_build(project)
build.update_release_type(release_type)
test(project)