Compare commits
No commits in common. "1ae1a931b5bf42ec1aa91ba3c5cd673d81005a73" and "e039a682418f78643db93934b2f9d33f80704f87" have entirely different histories.
1ae1a931b5
...
e039a68241
2 changed files with 5 additions and 35 deletions
|
@ -16,7 +16,7 @@ plugins {
|
||||||
apply plugin: "maven-publish"
|
apply plugin: "maven-publish"
|
||||||
|
|
||||||
|
|
||||||
version = "0.29.13-SNAPSHOT"
|
version = "0.29.12-SNAPSHOT"
|
||||||
group = "org.domaindrivenarchitecture.provs"
|
group = "org.domaindrivenarchitecture.provs"
|
||||||
|
|
||||||
|
|
||||||
|
|
38
build.py
38
build.py
|
@ -1,34 +1,13 @@
|
||||||
import os
|
from subprocess import run
|
||||||
from os import environ
|
from pybuilder.core import init, task
|
||||||
from pybuilder.core import task, init
|
|
||||||
from ddadevops import *
|
from ddadevops import *
|
||||||
|
|
||||||
|
default_task = "dev"
|
||||||
|
|
||||||
name = "provs"
|
name = "provs"
|
||||||
PROJECT_ROOT_PATH = "."
|
PROJECT_ROOT_PATH = "."
|
||||||
|
|
||||||
|
|
||||||
version = "0.29.13-dev"
|
|
||||||
|
|
||||||
|
|
||||||
@init
|
|
||||||
def initialize0(project):
|
|
||||||
"""
|
|
||||||
workaround to avoid prompt for gopass if no artifacts need to be uploaded
|
|
||||||
usage: with option "-E ng" , e.g. "pyb -E artifacts patch_local"
|
|
||||||
"""
|
|
||||||
os.environ["RELEASE_ARTIFACT_TOKEN"] = "dummy" # avoids prompt for RELEASE_ARTIFACT_TOKEN
|
|
||||||
|
|
||||||
|
|
||||||
@init(environments=["artifacts"])
|
|
||||||
def initialize1(project):
|
|
||||||
"""
|
|
||||||
prompt for gopass if no artifacts need to be uploaded
|
|
||||||
usage: with option "-E artifacts" , e.g. "pyb -E artifacts dev"
|
|
||||||
"""
|
|
||||||
del os.environ["RELEASE_ARTIFACT_TOKEN"]
|
|
||||||
|
|
||||||
|
|
||||||
@init
|
@init
|
||||||
def initialize(project):
|
def initialize(project):
|
||||||
input = {
|
input = {
|
||||||
|
@ -39,7 +18,7 @@ def initialize(project):
|
||||||
"build_types": [],
|
"build_types": [],
|
||||||
"mixin_types": ["RELEASE"],
|
"mixin_types": ["RELEASE"],
|
||||||
"release_primary_build_file": "build.gradle",
|
"release_primary_build_file": "build.gradle",
|
||||||
"release_secondary_build_files": ["build.py"],
|
"release_secondary_build_files": [],
|
||||||
# release artifacts
|
# release artifacts
|
||||||
"release_artifact_server_url": "https://repo.prod.meissa.de",
|
"release_artifact_server_url": "https://repo.prod.meissa.de",
|
||||||
"release_organisation": "meissa",
|
"release_organisation": "meissa",
|
||||||
|
@ -56,15 +35,6 @@ def initialize(project):
|
||||||
build.initialize_build_dir()
|
build.initialize_build_dir()
|
||||||
|
|
||||||
|
|
||||||
@task
|
|
||||||
def dev(project):
|
|
||||||
"""
|
|
||||||
to avoid gopass prompt set RELEASE_ARTIFACT_TOKEN e.g.:
|
|
||||||
RELEASE_ARTIFACT_TOKEN=xxx pyb dev
|
|
||||||
"""
|
|
||||||
run("./gradlew assemble", shell=True)
|
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def build(project):
|
def build(project):
|
||||||
run("./gradlew assemble", shell=True)
|
run("./gradlew assemble", shell=True)
|
||||||
|
|
Loading…
Reference in a new issue