2023-02-08 09:33:39 +00:00
|
|
|
from pybuilder.core import task, init
|
|
|
|
from ddadevops import *
|
2023-02-08 09:57:40 +00:00
|
|
|
from devops_test import *
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
init_project()
|
2023-02-08 09:33:39 +00:00
|
|
|
|
|
|
|
@init
|
|
|
|
def initialize(project):
|
2023-02-08 09:57:40 +00:00
|
|
|
project.build_depends_on('ddadevops>=3.1.2')
|
|
|
|
# build = get_devops_build()
|
|
|
|
# build.init()
|
|
|
|
init_project()
|
2023-02-08 09:33:39 +00:00
|
|
|
|
|
|
|
@task
|
|
|
|
def release(project):
|
2023-02-08 09:57:40 +00:00
|
|
|
# build = get_devops_build(project)
|
|
|
|
# build.prepare_release() # mit config file
|
|
|
|
prepare_release()
|
|
|
|
# build()
|
|
|
|
# build.publish()
|
|
|
|
# build.release_in_git()
|
2023-02-08 10:22:55 +00:00
|
|
|
# release_in_git()
|
2023-02-08 09:33:39 +00:00
|
|
|
|
|
|
|
@task
|
|
|
|
def build(project):
|
|
|
|
build = get_devops_build(project)
|
|
|
|
# ToDo: Implement for project
|
2023-02-08 09:57:40 +00:00
|
|
|
|
|
|
|
main()
|