add more dependand build for test

This commit is contained in:
Michael Jerger 2023-07-07 16:03:09 +02:00
parent 8f760233a5
commit ba3ce7fe99
2 changed files with 14 additions and 10 deletions

View file

@ -9,7 +9,6 @@ PROJECT_ROOT_PATH = "."
@init @init
def initialize(project): def initialize(project):
input = { input = {
"name": name, "name": name,
"module": MODULE, "module": MODULE,
@ -17,8 +16,8 @@ def initialize(project):
"project_root_path": PROJECT_ROOT_PATH, "project_root_path": PROJECT_ROOT_PATH,
"build_types": [], "build_types": [],
"mixin_types": ["RELEASE"], "mixin_types": ["RELEASE"],
"release_primary_build_file": "project.clj", "release_primary_build_file": "build_to_test.py",
"release_secondary_build_files": ["package.json"], "release_secondary_build_files": ["package.json", "project.clj"],
} }
project.build_depends_on("ddadevops>=4.0.0-dev") project.build_depends_on("ddadevops>=4.0.0-dev")
@ -31,27 +30,33 @@ def initialize(project):
def patch(project): def patch(project):
build(project, "PATCH") build(project, "PATCH")
@task @task
def minor(project): def minor(project):
build(project, "MINOR") build(project, "MINOR")
@task @task
def major(project): def major(project):
build(project, "MAJOR") build(project, "MAJOR")
@task @task
def dev(project): def dev(project):
build(project, "NONE") build(project, "NONE")
@task @task
def nothing(project): def nothing(project):
pass pass
@task @task
def prepare_release(project): def prepare_release(project):
build = get_devops_build(project) build = get_devops_build(project)
build.prepare_release() build.prepare_release()
@task @task
def tag_bump_and_push_release(project): def tag_bump_and_push_release(project):
build = get_devops_build(project) build = get_devops_build(project)

View file

@ -22,11 +22,11 @@ from ddadevops import *
use_plugin("python.core") use_plugin("python.core")
use_plugin("copy_resources") use_plugin("copy_resources")
use_plugin("filter_resources") use_plugin("filter_resources")
#use_plugin("python.unittest") # use_plugin("python.unittest")
#use_plugin("python.coverage") # use_plugin("python.coverage")
use_plugin("python.distutils") use_plugin("python.distutils")
#use_plugin("python.install_dependencies") # use_plugin("python.install_dependencies")
default_task = "dev" default_task = "dev"
@ -38,6 +38,5 @@ summary = "tools to support builds combining gopass, terraform, dda-pallet, aws
description = __doc__ description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
url = "https://repo.prod.meissa.de/meissa/dda-devops-build" url = "https://repo.prod.meissa.de/meissa/dda-devops-build"
requires_python = ">=3.10" # CHECK IF NEW VERSION EXISTS requires_python = ">=3.10" # CHECK IF NEW VERSION EXISTS
license = "Apache Software License" license = "Apache Software License"