Build Designer 0.1.0 against released NeitzelLib 1.0.6
This commit is contained in:
@@ -21,9 +21,9 @@ if info["buildNumber"] != "263.7307.200":
|
||||
def run(command):
|
||||
subprocess.run([str(x) for x in command], cwd=ROOT, check=True)
|
||||
wrapper = ROOT / ("mvnw.cmd" if os.name == "nt" else "mvnw")
|
||||
run([sys.executable, ROOT / "scripts/check-neitzellib-artifact.py"])
|
||||
run([sys.executable, ROOT / "scripts/check-neitzellib-artifact.py", "--resolve"])
|
||||
run([wrapper, "-B", "-ntp", "clean", "install"])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=test", "-Dmdep.outputFile=target/runtime-classpath.txt"])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=runtime", "-Dmdep.outputFile=target/runtime-classpath.txt"])
|
||||
for module in ("contracts", "model-processor", "preview-api", "core", "kit-ui", "standalone", "target-tools", "maven-plugin"):
|
||||
name = "designer-" + module
|
||||
expected = 69
|
||||
|
||||
@@ -1,17 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Verify that the locally installed development runtime matches the tested artifact."""
|
||||
"""Verify that the locally cached NeitzelLib release matches the tested artifact."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--repository", type=Path, default=Path(os.environ.get("NEITZELLIB_MAVEN_REPOSITORY", Path.home() / ".m2/repository")))
|
||||
parser.add_argument("--resolve", action="store_true", help="Fetch the published Maven baseline before checking it")
|
||||
args = parser.parse_args()
|
||||
manifest = json.loads((ROOT / "docs/runtime/neitzellib-baseline.json").read_text())
|
||||
if args.resolve:
|
||||
wrapper = ROOT / ("mvnw.cmd" if os.name == "nt" else "mvnw")
|
||||
subprocess.run([str(wrapper), "-N", "-B", "-ntp",
|
||||
f"-Dmaven.repo.local={args.repository.resolve()}",
|
||||
"org.apache.maven.plugins:maven-dependency-plugin:3.6.1:get",
|
||||
f"-Dartifact=de.neitzel.lib:fx-test:{manifest['minimumReleasedVersion']}"],
|
||||
cwd=ROOT, check=True)
|
||||
errors = []
|
||||
for artifact in manifest["artifacts"]:
|
||||
path = args.repository / artifact["repositoryPath"]
|
||||
@@ -22,4 +31,4 @@ for artifact in manifest["artifacts"]:
|
||||
if errors:
|
||||
print("\n".join(errors), file=sys.stderr)
|
||||
sys.exit("Runtime identity mismatch. See docs/runtime/neitzellib-baseline.md.")
|
||||
print(f"PASS {len(manifest['artifacts'])} runtime artifacts match tested source {manifest['sourceRevision']}; no corrected release version is claimed")
|
||||
print(f"PASS {len(manifest['artifacts'])} runtime artifacts match tested source {manifest['sourceRevision']}")
|
||||
|
||||
@@ -15,7 +15,7 @@ for output in (app,destination/'package-manifest.json',destination/'NeitzelFXDes
|
||||
env=dict(os.environ, JAVA_HOME=str(java))
|
||||
def run(cmd): subprocess.run(list(map(str,cmd)),cwd=ROOT,env=env,check=True)
|
||||
run([java/'bin/java','-version'])
|
||||
run([os.sys.executable,ROOT/'scripts/check-neitzellib-artifact.py'])
|
||||
run([os.sys.executable,ROOT/'scripts/check-neitzellib-artifact.py','--resolve'])
|
||||
run([ROOT/'mvnw','-B','-ntp','-pl','designer-standalone,designer-target-tools','-am','install'])
|
||||
run([ROOT/'mvnw','-B','-ntp','-pl','designer-standalone','org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath','-DincludeScope=runtime','-Dmdep.outputFile=target/package-classpath.txt'])
|
||||
with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
|
||||
|
||||
Reference in New Issue
Block a user