mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
new beta version 3.4.2-magnesium-beta
This commit is contained in:
parent
40b709b318
commit
dbe638222e
15
.vscode/launch.json
vendored
15
.vscode/launch.json
vendored
@ -5,6 +5,7 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
|
||||
{
|
||||
"name": "Python TASK generate-nullable",
|
||||
"type": "python",
|
||||
@ -26,7 +27,7 @@
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
"name": "Python TASK build-samples",
|
||||
"name": "build-samples",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"module": "invoke",
|
||||
@ -34,6 +35,18 @@
|
||||
"build-samples"
|
||||
],
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
"name": "release",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"module": "invoke",
|
||||
"args": [
|
||||
"release",
|
||||
"--skip-build",
|
||||
"--skip-tests"
|
||||
],
|
||||
"console": "integratedTerminal"
|
||||
}
|
||||
]
|
||||
}
|
@ -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)
|
||||
|
||||
![](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 -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
@ -1,2 +1,2 @@
|
||||
const
|
||||
DMVCFRAMEWORK_VERSION = '3.4.1-sodium';
|
||||
DMVCFRAMEWORK_VERSION = '3.4.2-magnesium-beta';
|
23
tasks.py
23
tasks.py
@ -393,15 +393,36 @@ def tests64(ctx):
|
||||
def tests(ctx):
|
||||
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()
|
||||
def release(
|
||||
ctx,
|
||||
version="DEBUG",
|
||||
skip_build=False,
|
||||
skip_tests=False,
|
||||
):
|
||||
"""Builds all the projects, executes integration tests and prepare the release"""
|
||||
|
||||
version = get_version_from_file()
|
||||
|
||||
init_build(version)
|
||||
|
||||
if not skip_tests:
|
||||
|
Loading…
Reference in New Issue
Block a user