Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helper-scripts/project-impl/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maven_version="3.9.3"
maven_bin="./apache-maven-$maven_version/bin/mvn"

lib_pomFile="./helper-scripts/project-impl/publishing/jector.pom"
ext_pomFile="./helper-scripts/project-impl/publishing/jector.pom"
ext_pomFile="./helper-scripts/project-impl/publishing/jector-monkey.pom"

passphrase="avrsandbox"

Expand Down
9 changes: 9 additions & 0 deletions helper-scripts/tests/check-pom-paths.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Check publishing metadata paths without signing or publishing anything."""
from pathlib import Path
import re
variables = (Path(__file__).parents[1] / "project-impl/variables.sh").read_text()
paths = dict(re.findall(r'^(lib_pomFile|ext_pomFile)="([^"]+)"', variables, re.M))
assert paths["lib_pomFile"] != paths["ext_pomFile"], "Core and extension POMs must not overwrite each other"
assert Path(paths["lib_pomFile"]).name == "jector.pom"
assert Path(paths["ext_pomFile"]).name == "jector-monkey.pom"
print("PASS: distinct core and extension POM paths")