Skip to content

Commit 61cd40b

Browse files
authored
Support neo4j-bolt-connection testing (#1628)
Providing that Testkit build is started with `TEST_NEO4J_BOLT_CONNECTION=true`, the driver build will expect to have a `bolt-connection` subfolder with `neo4j-bolt-connection` project that it will use during the driver build.
1 parent 2e62d7f commit 61cd40b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testkit/build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def run(args):
1010
subprocess.run(
1111
args, universal_newlines=True, stderr=subprocess.STDOUT, check=True)
1212

13-
1413
if __name__ == "__main__" and "TEST_SKIP_BUILD" not in os.environ:
15-
run(["mvn", "--show-version", "--batch-mode", "clean", "install", "-P", "!determine-revision", "-DskipTests"])
14+
if os.getenv("TEST_NEO4J_BOLT_CONNECTION", "false") == "true" :
15+
run(["mvn", "-f", "/driver/bolt-connection/pom.xml", "--show-version", "--batch-mode", "clean", "versions:set", "-DnewVersion=0.0.0"])
16+
run(["mvn", "-f", "/driver/bolt-connection/pom.xml", "--show-version", "--batch-mode", "clean", "install", "-DskipTests"])
17+
run(["mvn", "--show-version", "--batch-mode", "clean", "install", "-P", "!determine-revision", "-DskipTests", "-Dneo4j-bolt-connection-bom.version=0.0.0"])
18+
else:
19+
run(["mvn", "--show-version", "--batch-mode", "clean", "install", "-P", "!determine-revision", "-DskipTests"])

0 commit comments

Comments
 (0)