new beta version 3.4.2-magnesium-beta

This commit is contained in:
Daniele Teti 2024-01-09 09:24:47 +01:00
parent 40b709b318
commit dbe638222e
4 changed files with 38 additions and 4 deletions

15
.vscode/launch.json vendored
View File

@ -5,6 +5,7 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Python TASK generate-nullable", "name": "Python TASK generate-nullable",
"type": "python", "type": "python",
@ -26,7 +27,7 @@
"console": "integratedTerminal" "console": "integratedTerminal"
}, },
{ {
"name": "Python TASK build-samples", "name": "build-samples",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"module": "invoke", "module": "invoke",
@ -34,6 +35,18 @@
"build-samples" "build-samples"
], ],
"console": "integratedTerminal" "console": "integratedTerminal"
},
{
"name": "release",
"type": "python",
"request": "launch",
"module": "invoke",
"args": [
"release",
"--skip-build",
"--skip-tests"
],
"console": "integratedTerminal"
} }
] ]
} }

View File

@ -1,7 +1,7 @@
# DelphiMVCFramework ![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg) ![GitHub All Releases](https://img.shields.io/github/downloads/danieleteti/delphimvcframework/total?label=Downloads) # DelphiMVCFramework ![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg) ![GitHub All Releases](https://img.shields.io/github/downloads/danieleteti/delphimvcframework/total?label=Downloads)
![](https://img.shields.io/badge/stable-dmvcframework--3.4.1--sodium-blue) ![](https://img.shields.io/badge/stable-dmvcframework--3.4.1--sodium-blue)
![](https://img.shields.io/badge/beta-dmvcframework--3.5.0--magnesium--beta-red) ![](https://img.shields.io/badge/beta-dmvcframework--3.4.2--magnesium--beta-red)
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

View File

@ -1,2 +1,2 @@
const const
DMVCFRAMEWORK_VERSION = '3.4.1-sodium'; DMVCFRAMEWORK_VERSION = '3.4.2-magnesium-beta';

View File

@ -393,15 +393,36 @@ def tests64(ctx):
def tests(ctx): def tests(ctx):
pass pass
def get_version_from_file():
with open(r".\sources\dmvcframeworkbuildconsts.inc") as f:
lines = f.readlines()
res = [x for x in lines if "DMVCFRAMEWORK_VERSION" in x]
if len(res) != 1:
raise Exception("Cannot find DMVCFRAMEWORK_VERSION in dmvcframeworkbuildconsts.inc file")
version_line: str = res[0]
version_line = version_line.strip(" ;\t")
pieces = version_line.split("=")
if len(pieces) != 2:
raise Exception("Version line in wrong format in dmvcframeworkbuildconsts.inc file: " + version_line)
version = pieces[1].strip("' ")
if not 'framework' in version:
version = "dmvcframework-" + version
if "beta" in version.lower():
print(Fore.RESET + Fore.RED + "WARNING - BETA VERSION: " + version + Fore.RESET)
else:
print(Fore.RESET + Fore.GREEN + "BUILDING VERSION: " + version + Fore.RESET)
return version
@task() @task()
def release( def release(
ctx, ctx,
version="DEBUG",
skip_build=False, skip_build=False,
skip_tests=False, skip_tests=False,
): ):
"""Builds all the projects, executes integration tests and prepare the release""" """Builds all the projects, executes integration tests and prepare the release"""
version = get_version_from_file()
init_build(version) init_build(version)
if not skip_tests: if not skip_tests: