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
|
## Release
|
||||||
|
|
||||||
```
|
```
|
||||||
adjust version no in build.py to release version no.
|
pyb lint [dev|patch|minor|major] prepare_release publish tag_bump_and_push_release upload
|
||||||
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
|
|
||||||
pip3 install --upgrade --user ddadevops
|
pip3 install --upgrade --user ddadevops
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
41
build.py
41
build.py
|
@ -28,12 +28,12 @@ use_plugin("python.distutils")
|
||||||
|
|
||||||
#use_plugin("python.install_dependencies")
|
#use_plugin("python.install_dependencies")
|
||||||
|
|
||||||
default_task = "publish"
|
default_task = "dev"
|
||||||
|
|
||||||
name = "ddadevops"
|
name = "ddadevops"
|
||||||
MODULE = "not-used"
|
MODULE = "not-used"
|
||||||
PROJECT_ROOT_PATH = "."
|
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"
|
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
||||||
description = __doc__
|
description = __doc__
|
||||||
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
||||||
|
@ -111,13 +111,38 @@ def lint(project):
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def patch(project):
|
def patch(project):
|
||||||
build = get_devops_build(project)
|
build(project, "PATCH")
|
||||||
build.update_release_type("PATCH")
|
|
||||||
#build.prepare_release()
|
@task
|
||||||
test(project)
|
def minor(project):
|
||||||
lint(project)
|
build(project, "MINOR")
|
||||||
#build.tag_bump_and_push_release()
|
|
||||||
|
@task
|
||||||
|
def major(project):
|
||||||
|
build(project, "MAJOR")
|
||||||
|
|
||||||
|
@task
|
||||||
|
def dev(project):
|
||||||
|
build(project, "NONE")
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def nothing(project):
|
def nothing(project):
|
||||||
pass
|
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